Skip to content

Commit 3462eaa

Browse files
authored
Update test for datafusion #14824 (#7)
* upd for #14824 * upd
1 parent a169d8d commit 3462eaa

257 files changed

Lines changed: 10744 additions & 10744 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

data/sqlite/index/random/10/slt_good_1.slt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27106,31 +27106,31 @@ SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col4 AS col4 FROM tab4 cor0 WHERE
2710627106
# Datafusion - Datafusion expected results:
2710727107
# Datafusion - Expected - 45
2710827108
# Datafusion - Expected - 0
27109-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
27109+
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\.
2711027110
SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab0 WHERE 87 < - + col4
2711127111

2711227112
# Datafusion - Datafusion expected results:
2711327113
# Datafusion - Expected - 45
2711427114
# Datafusion - Expected - 0
27115-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
27115+
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\.
2711627116
SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab1 WHERE 87 < - + col4
2711727117

2711827118
# Datafusion - Datafusion expected results:
2711927119
# Datafusion - Expected - 45
2712027120
# Datafusion - Expected - 0
27121-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
27121+
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\.
2712227122
SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab2 WHERE 87 < - + col4
2712327123

2712427124
# Datafusion - Datafusion expected results:
2712527125
# Datafusion - Expected - 45
2712627126
# Datafusion - Expected - 0
27127-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
27127+
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\.
2712827128
SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab3 WHERE 87 < - + col4
2712927129

2713027130
# Datafusion - Datafusion expected results:
2713127131
# Datafusion - Expected - 45
2713227132
# Datafusion - Expected - 0
27133-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(45\) AS col0" at position 0 and "count\(\*\) \- count\(\*\) AS col0" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
27133+
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\.
2713427134
SELECT 45 AS col0, COUNT ( * ) - COUNT ( * ) col0 FROM tab4 WHERE 87 < - + col4
2713527135

2713627136
# Datafusion - Types were automatically converted from:
@@ -44761,31 +44761,31 @@ SELECT * FROM tab4 AS cor0 WHERE 85 * - col1 IS NULL
4476144761
# Datafusion - Datafusion expected results:
4476244762
# Datafusion - Expected - 0
4476344763
# Datafusion - Expected - 0
44764-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44764+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4476544765
SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
4476644766

4476744767
# Datafusion - Datafusion expected results:
4476844768
# Datafusion - Expected - 0
4476944769
# Datafusion - Expected - 0
44770-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44770+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4477144771
SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
4477244772

4477344773
# Datafusion - Datafusion expected results:
4477444774
# Datafusion - Expected - 0
4477544775
# Datafusion - Expected - 0
44776-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44776+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4477744777
SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
4477844778

4477944779
# Datafusion - Datafusion expected results:
4478044780
# Datafusion - Expected - 0
4478144781
# Datafusion - Expected - 0
44782-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44782+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4478344783
SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab3 WHERE NULL IS NOT NULL
4478444784

4478544785
# Datafusion - Datafusion expected results:
4478644786
# Datafusion - Expected - 0
4478744787
# Datafusion - Expected - 0
44788-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(\*\)\)" at position 0 and "\(\- count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
44788+
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 0 and "\(\- count\(Int64\(1\)\) AS count\(\*\)\)" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
4478944789
SELECT ALL + - COUNT ( * ), - COUNT ( * ) FROM tab4 WHERE NULL IS NOT NULL
4479044790

4479144791
# Datafusion - Types were automatically converted from:

data/sqlite/index/random/10/slt_good_10.slt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8211,31 +8211,31 @@ SELECT + 89 FROM tab4 AS cor0 WHERE NULL >= + col4
82118211
# Datafusion - Datafusion expected results:
82128212
# Datafusion - Expected - -59
82138213
# Datafusion - Expected - 0
8214-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
8214+
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\.
82158215
SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab0 AS cor0 WHERE 71 / - col0 >= NULL
82168216

82178217
# Datafusion - Datafusion expected results:
82188218
# Datafusion - Expected - -59
82198219
# Datafusion - Expected - 0
8220-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
8220+
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\.
82218221
SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab1 AS cor0 WHERE 71 / - col0 >= NULL
82228222

82238223
# Datafusion - Datafusion expected results:
82248224
# Datafusion - Expected - -59
82258225
# Datafusion - Expected - 0
8226-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
8226+
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\.
82278227
SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab2 AS cor0 WHERE 71 / - col0 >= NULL
82288228

82298229
# Datafusion - Datafusion expected results:
82308230
# Datafusion - Expected - -59
82318231
# Datafusion - Expected - 0
8232-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
8232+
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\.
82338233
SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab3 AS cor0 WHERE 71 / - col0 >= NULL
82348234

82358235
# Datafusion - Datafusion expected results:
82368236
# Datafusion - Expected - -59
82378237
# Datafusion - Expected - 0
8238-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-59\) AS col5" at position 0 and "count\(\*\) AS col5" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
8238+
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\.
82398239
SELECT ALL - 59 col5, + COUNT ( * ) AS col5 FROM tab4 AS cor0 WHERE 71 / - col0 >= NULL
82408240

82418241
# Datafusion - Types were automatically converted from:

data/sqlite/index/random/10/slt_good_11.slt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25669,31 +25669,31 @@ SELECT 79 - + ( + 20 ) * + col3 AS col4 FROM tab4 AS cor0 WHERE col4 IS NOT NULL
2566925669
# Datafusion - Datafusion expected results:
2567025670
# Datafusion - Expected - 0
2567125671
# Datafusion - Expected - 7
25672-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
25672+
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\.
2567325673
SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab0 WHERE NOT NULL >= + col1
2567425674

2567525675
# Datafusion - Datafusion expected results:
2567625676
# Datafusion - Expected - 0
2567725677
# Datafusion - Expected - 7
25678-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
25678+
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\.
2567925679
SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab1 WHERE NOT NULL >= + col1
2568025680

2568125681
# Datafusion - Datafusion expected results:
2568225682
# Datafusion - Expected - 0
2568325683
# Datafusion - Expected - 7
25684-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
25684+
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\.
2568525685
SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab2 WHERE NOT NULL >= + col1
2568625686

2568725687
# Datafusion - Datafusion expected results:
2568825688
# Datafusion - Expected - 0
2568925689
# Datafusion - Expected - 7
25690-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
25690+
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\.
2569125691
SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab3 WHERE NOT NULL >= + col1
2569225692

2569325693
# Datafusion - Datafusion expected results:
2569425694
# Datafusion - Expected - 0
2569525695
# Datafusion - Expected - 7
25696-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "count\(\*\) AS col4" at position 0 and "Int64\(7\) AS col4" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
25696+
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\.
2569725697
SELECT + COUNT ( * ) AS col4, 7 AS col4 FROM tab4 WHERE NOT NULL >= + col1
2569825698

2569925699
query I rowsort label-4190
@@ -28644,31 +28644,31 @@ SELECT col4 FROM tab4 AS cor0 WHERE NULL < NULL
2864428644
# Datafusion - Datafusion expected results:
2864528645
# Datafusion - Expected - -78
2864628646
# Datafusion - Expected - 10
28647-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
28647+
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\.
2864828648
SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
2864928649

2865028650
# Datafusion - Datafusion expected results:
2865128651
# Datafusion - Expected - -78
2865228652
# Datafusion - Expected - 10
28653-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
28653+
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\.
2865428654
SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
2865528655

2865628656
# Datafusion - Datafusion expected results:
2865728657
# Datafusion - Expected - -78
2865828658
# Datafusion - Expected - 10
28659-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
28659+
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\.
2866028660
SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
2866128661

2866228662
# Datafusion - Datafusion expected results:
2866328663
# Datafusion - Expected - -78
2866428664
# Datafusion - Expected - 10
28665-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
28665+
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\.
2866628666
SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab3 AS cor0 WHERE NOT NULL IS NOT NULL
2866728667

2866828668
# Datafusion - Datafusion expected results:
2866928669
# Datafusion - Expected - -78
2867028670
# Datafusion - Expected - 10
28671-
query error DataFusion error: Error during planning: Projections require unique expression names but the expression "Int64\(\-78\) AS col2" at position 0 and "count\(\*\) AS col2" at position 1 have the same name\. Consider aliasing \("AS"\) one of them\.
28671+
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\.
2867228672
SELECT DISTINCT - 78 AS col2, COUNT ( * ) AS col2 FROM tab4 AS cor0 WHERE NOT NULL IS NOT NULL
2867328673

2867428674
# Datafusion - Types were automatically converted from:

0 commit comments

Comments
 (0)