Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/sqlite/random/aggregates/slt_good_76.slt
Original file line number Diff line number Diff line change
Expand Up @@ -32121,7 +32121,7 @@ SELECT DISTINCT + + 18 + - 84 AS col2 FROM tab2 AS cor0
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 7549
# Datafusion - Expected - -117
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(92\) \+ \(\- min\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "Int64\(37\) \- Int64\(93\) \+ \(\- count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(81\) \* Int64\(92\) \+ \(\- min\(\(\- tab0\.col0\)\)\) AS col1" at position 0 and "Int64\(37\) \- Int64\(93\) \+ \(\- \(count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(58\)\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT 81 * 92 + - MIN ( ALL - col0 ) AS col1, 37 - + 93 + - ( COUNT ( * ) + 58 ) AS col1 FROM tab0

query II rowsort
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_0.slt
Original file line number Diff line number Diff line change
Expand Up @@ -7451,7 +7451,7 @@ SELECT DISTINCT - + 56
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 100
# Datafusion - Expected - 19
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- Int64\(34\) \* Int64\(90\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(99\) \+ count\(Int64\(1\)\) AS count\(\*\) AS col2" at position 0 and "Int64\(19\) \+ \(\- count\(Int64\(62\)\)\) / \(\- \(Int64\(34\) \* Int64\(90\)\)\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2

query II rowsort
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_101.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3539,7 +3539,7 @@ SELECT ALL - + COUNT ( ALL - 93 ) AS col1
# Datafusion - Datafusion expected results:
# Datafusion - Expected - 73
# Datafusion - Expected - NULL
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- CAST\(NULL AS Int32\) \+ Int64\(35\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(73\) AS col0" at position 0 and "\(\- CASE Int64\(\-73\) WHEN Int64\(\-20\) \+ avg\(Int64\(61\)\) \+ coalesce\(Int64\(75\), \(\- Int64\(34\)\) \+ Int64\(\-83\)\) THEN Int64\(26\) \* Int64\(\-85\) WHEN \(\- \(\- coalesce\(CASE Int64\(69\) WHEN Int64\(80\) \- Int64\(98\) / count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(64\) \- coalesce\(Int64\(94\), Int64\(12\) \+ CAST\(\(\- Int64\(83\)\) AS Int32\) / Int64\(\-94\), Int64\(\-49\) \+ Int64\(76\)\) / Int64\(35\) THEN NULL WHEN Int64\(18\) \* Int64\(69\) THEN Int64\(\-23\) ELSE Int64\(\-50\) \+ Int64\(53\) END, Int64\(41\) \* Int64\(37\) / Int64\(38\)\)\)\) \* \(\- \(CAST\(NULL AS Int32\) \+ Int64\(35\)\)\) \+ count\(Int64\(1\)\) AS count\(\*\) THEN Int64\(55\) \* Int64\(87\) END\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT DISTINCT 73 AS col0, - CASE - 73 WHEN - 20 + + AVG ( + 61 ) + + COALESCE ( + 75, - + 34 + - 83 ) THEN 26 * - 85 WHEN - - COALESCE ( + CASE 69 WHEN 80 - + + 98 / + + COUNT ( * ) + 64 - + COALESCE ( 94, + 12 + CAST ( - ( 83 ) AS INTEGER ) / - 94, - 49 + 76 ) / 35 THEN NULL WHEN + 18 * 69 THEN - 23 ELSE - 50 + 53 END, 41 * ( 37 / 38 ) ) * - ( CAST ( NULL AS INTEGER ) + 35 ) + COUNT ( * ) THEN 55 * 87 END col0

query I rowsort
Expand Down
4 changes: 2 additions & 2 deletions data/sqlite/random/expr/slt_good_104.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,7 @@ SELECT ALL - 80 * 61 * + 30
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -67
# Datafusion - Expected - 489
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- sum\(\(\- Int64\(\-67\)\)\)\) AS col2" at position 0 and "Int64\(\-9\) \* CASE \(\- Int64\(\-4\)\) WHEN Int64\(\-50\) THEN \(\- Int64\(59\)\) \* \(\- Int64\(\-46\)\) \+ Int64\(99\) WHEN Int64\(\-70\) THEN Int64\(\-76\) \- \(\- min\(Int64\(\-91\)\)\) \+ Int64\(88\) \+ Int64\(34\) \* Int64\(33\) \* \(\- CAST\(NULL AS Int32\)\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\) \+ \(\- Int64\(33\)\) \+ coalesce\(\(\- \(\- CASE Int64\(\-5\) WHEN count\(Int64\(1\)\) AS count\(\*\) \* \(\- CASE Int64\(62\) WHEN Int64\(98\) \* Int64\(24\) \+ Int64\(\-35\) THEN \(\- min\(Int64\(46\)\)\) WHEN Int64\(47\) \+ Int64\(4\) \* sum\(CASE Int64\(99\) WHEN Int64\(14\) THEN Int64\(33\) ELSE Int64\(5\) END\) THEN NULL END\) \* CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\) \+ Int64\(20\) THEN count\(Int64\(1\)\) AS count\(\*\) \* Int64\(\-70\) \+ Int64\(\-80\) \* \(\- CAST\(CASE Int64\(74\) WHEN \(\- CAST\(\(\- count\(Int64\(1\)\) AS count\(\*\)\) AS Int32\)\) \* CAST\(count\(Int64\(67\)\) \* avg\(Int64\(17\)\) \+ Int64\(\-9\) AS Int32\) \+ Int64\(24\) \* Int64\(\-65\) THEN NULL WHEN count\(Int64\(1\)\) AS count\(\*\) THEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) ELSE Int64\(1\) END AS Int32\)\) ELSE NULL END\)\), Int64\(83\), Int64\(38\)\) WHEN Int64\(95\) \- coalesce\(Int64\(51\), Int64\(32\), Int64\(73\) \+ Int64\(50\)\) \* Int64\(27\) THEN NULL ELSE \(\- count\(Int64\(3\)\)\) END \+ \(\- \(coalesce\(count\(Int64\(1\)\) AS count\(\*\), Int64\(\-81\) \- count\(\(\- CAST\(Int64\(\-16\) AS Int32\)\)\) \* Int64\(69\)\) \+ Int64\(19\)\)\) \* Int64\(\-24\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT DISTINCT - SUM ( ( - - 67 ) ) AS col2, - 9 * CASE - - 4 WHEN - 50 THEN - ( 59 ) * - - 46 + 99 WHEN - 70 THEN - 76 - - MIN ( ALL - 91 ) + + + 88 + ( + + 34 ) * + 33 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 33 + + COALESCE ( - - CASE - 5 WHEN + COUNT ( * ) * - + CASE + + 62 WHEN 98 * + + ( 24 ) + - 35 THEN - MIN ( + + 46 ) WHEN + 47 + 4 * + SUM ( ALL CASE 99 WHEN 14 THEN ( 33 ) ELSE 5 END ) THEN NULL END * CAST ( - COUNT ( * ) AS INTEGER ) + + 20 THEN + COUNT ( * ) * - 70 + - 80 * - CAST ( + CASE 74 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( COUNT ( 67 ) * AVG ( ALL 17 ) + - 9 AS INTEGER ) + + 24 * ( - 65 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE 1 END AS INTEGER ) ELSE NULL END, 83, 38 ) WHEN + 95 - + COALESCE ( + 51, 32, 73 + 50 ) * + 27 THEN NULL ELSE - COUNT ( 3 ) END + - ( + COALESCE ( COUNT ( * ), - 81 - COUNT ( ALL - CAST ( - 16 AS INTEGER ) ) * 69 ) + 19 ) * - 24 AS col2

query I rowsort
Expand Down Expand Up @@ -43172,7 +43172,7 @@ SELECT ALL - COUNT ( * ) * - ( + 58 )
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -5
# Datafusion - Expected - NULL
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- Int64\(5\)\) AS col1" at position 0 and "CASE WHEN NOT Int64\(\-43\) NOT IN \(\[Int64\(33\) \* Int64\(65\), Int64\(\-31\)\]\) THEN NULL WHEN Int64\(\-41\) IN \(\[Int64\(73\) \* CASE Int64\(33\) WHEN Int64\(\-25\) THEN \(\- CAST\(NULL AS Int32\)\) ELSE NULL END\]\) THEN Int64\(64\) WHEN NOT \(CAST\(CASE Int64\(52\) WHEN count\(Int64\(1\)\) AS count\(\*\) THEN NULL WHEN Int64\(51\) THEN Int64\(\-68\) ELSE NULL END AS Int32\) = Int64\(50\)\) THEN NULL END \* Int64\(11\) \+ nullif\(Int64\(\-3\) \+ Int64\(51\), Int64\(32\)\) AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT - ( 5 ) AS col1, + CASE WHEN NOT - 43 NOT IN ( + + 33 * 65, - 31 ) THEN NULL WHEN ( + ( - 41 ) ) IN ( 73 * CASE + + 33 WHEN - 25 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN 64 WHEN NOT ( + CAST ( + CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN 51 THEN - 68 ELSE NULL END AS INTEGER ) ) = 50 THEN NULL END * 11 + NULLIF ( ( - 3 ) + 51, 32 ) AS col1

query II rowsort label-8213
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_115.slt
Original file line number Diff line number Diff line change
Expand Up @@ -44658,7 +44658,7 @@ 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 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\.
SELECT + 76 col1, CASE WHEN NOT ( - 21 > NULL ) THEN NULL ELSE - 59 * + SUM ( ALL 32 ) END AS col1

query II rowsort label-8497
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_12.slt
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ SELECT ALL - 79 + - + 87 AS col1
# Datafusion - Datafusion expected results:
# Datafusion - Expected - -3789
# Datafusion - Expected - -54
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(72\) \* \(\- Int64\(52\)\) \+ Int64\(\-45\) AS col2" at position 0 and "CASE sum\(\(\- \(\- CAST\(NULL AS Int32\)\)\)\) WHEN CAST\(NULL AS Float64\) \+ Int64\(38\) THEN \(\- Int64\(\-42\)\) \+ Int64\(\-28\) WHEN Int64\(\-62\) \* Int64\(41\) \- \(\- Int64\(24\)\) THEN CAST\(\(\- Int64\(\-36\)\) AS Int32\) WHEN Int64\(\-64\) \* Int64\(56\) \+ \(\- max\(Int64\(65\)\)\) THEN \(\- sum\(Int64\(80\)\)\) / Int64\(24\) \* count\(Int64\(1\)\) AS count\(\*\) \+ Int64\(\-71\) \+ CASE \(\- \(\- count\(Int64\(1\)\) AS count\(\*\)\)\) WHEN coalesce\(Int64\(62\), min\(Int64\(13\)\) \* Int64\(98\)\) \* Int64\(31\) \* Int64\(22\) \* CASE count\(Int64\(1\)\) AS count\(\*\) WHEN Int64\(75\) \- Int64\(\-17\) THEN Int64\(86\) \* \(\- Int64\(\-35\)\) \+ Int64\(38\) WHEN Int64\(20\) \* Int64\(47\) THEN \(\- Int64\(51\)\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN NULL END THEN NULL WHEN CASE Int64\(62\) WHEN \(\- count\(Int64\(1\)\) AS count\(\*\)\) THEN Int64\(23\) \* Int64\(55\) \- Int64\(66\) WHEN Int64\(88\) THEN Int64\(82\) \* \(\- \(\(\- CASE Int64\(\-16\) WHEN Int64\(47\) THEN Int64\(\-18\) END\) \* \(\- count\(Int64\(1\)\) AS count\(\*\)\)\)\) \- Int64\(\-15\) END / Int64\(24\) \+ Int64\(\-23\) THEN Int64\(96\) END \* \(\- \(\(\- count\(DISTINCT Int64\(24\)\)\) \* Int64\(\-3\) \+ count\(Int64\(1\)\) AS count\(\*\) \* Int64\(86\)\)\) ELSE Int64\(\-54\) END AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL 72 * - + 52 + - 45 AS col2, CASE + SUM ( ALL - - CAST ( NULL AS INTEGER ) ) WHEN CAST ( NULL AS FLOAT8 ) + 38 THEN - - 42 + - 28 WHEN - 62 * + 41 - - + 24 THEN + CAST ( - - 36 AS INTEGER ) WHEN - 64 * 56 + - MAX ( + 65 ) THEN - SUM ( 80 ) / 24 * COUNT ( * ) + + - 71 + + CASE - - COUNT ( * ) WHEN + COALESCE ( 62, + + MIN ( + 13 ) * + 98 ) * + 31 * 22 * + CASE COUNT ( * ) WHEN + 75 - - 17 THEN 86 * - - 35 + + + 38 WHEN + + 20 * + 47 THEN - + 51 WHEN + - COUNT ( * ) THEN NULL END THEN NULL WHEN CASE 62 WHEN - COUNT ( * ) THEN 23 * 55 - + 66 WHEN + 88 THEN + 82 * - ( - CASE - 16 WHEN 47 THEN + ( ( - 18 ) ) END * - COUNT ( * ) ) - - 15 END / 24 + - 23 THEN 96 END * - ( - COUNT ( DISTINCT 24 ) * - 3 + COUNT ( * ) * + 86 ) ELSE - 54 END col2

query II rowsort label-36
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_14.slt
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ SELECT 75 - - ( 10 ) AS col0, COUNT ( * ) * - 80 AS col0
# Datafusion - Datafusion expected results:
# Datafusion - Expected - NULL
# Datafusion - Expected - 4484
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ count\(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 error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(0\) \+ count\(Int64\(1\)\) AS count\(\*\) \- \(\- CASE Int64\(\-37\) WHEN Int64\(\-50\) \* Int64\(\-84\) THEN Int64\(54\) \* Int64\(90\) ELSE NULL END\) AS col1" at position 0 and "Int64\(60\) \* Int64\(74\) \+ CASE Int64\(\-79\) WHEN Int64\(47\) THEN NULL WHEN Int64\(3\) \+ \(\- \(Int64\(28\) \+ Int64\(17\)\)\) THEN Int64\(54\) ELSE Int64\(44\) END AS col1" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
SELECT ALL + 0 + + COUNT ( * ) - - CASE + - 37 WHEN - 50 * + - 84 THEN 54 * 90 ELSE NULL END AS col1, 60 * 74 + ( + CASE - 79 WHEN + 47 THEN NULL WHEN 3 + - ( + 28 + 17 ) THEN 54 ELSE 44 END ) AS col1

query I rowsort label-147
Expand Down
2 changes: 1 addition & 1 deletion data/sqlite/random/expr/slt_good_16.slt
Original file line number Diff line number Diff line change
Expand Up @@ -9387,7 +9387,7 @@ SELECT DISTINCT - 39 / - + 94 AS col0
# Datafusion - Datafusion expected results:
# Datafusion - Expected - NULL
# Datafusion - Expected - 85
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT Int64\(96\) <= Int64\(67\) \* CAST\(min\(DISTINCT Int64\(\-77\)\) AS Int32\) THEN \(\- CAST\(NULL AS Float64\)\) END AS col0" at position 0 and "Int64\(85\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "CASE WHEN NOT \(Int64\(96\) <= Int64\(67\) \* CAST\(min\(DISTINCT Int64\(\-77\)\) AS 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\.
SELECT ALL + CASE WHEN NOT + 96 <= + 67 * + + CAST ( MIN ( DISTINCT - 77 ) AS INTEGER ) THEN - CAST ( NULL AS FLOAT8 ) END AS col0, 85 AS col0

query I rowsort label-1775
Expand Down
Loading