@@ -1318,25 +1318,25 @@ statement error
13181318SELECT * EXCLUDE(a, a)
13191319FROM table1
13201320
1321- # if EXCEPT all the columns, query should still succeed but return empty
1322- statement ok
1321+ # if EXCEPT all the columns, query should return an error
1322+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13231323SELECT * EXCEPT(a, b, c, d)
13241324FROM table1
13251325
1326- # try zero column with LIMIT, 1 row but empty
1327- statement ok
1326+ # try zero column with LIMIT, should error
1327+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13281328SELECT * EXCEPT (a, b, c, d)
13291329FROM table1
13301330LIMIT 1
13311331
1332- # try zero column with GROUP BY, 2 row but empty
1333- statement ok
1332+ # try zero column with GROUP BY, should error
1333+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13341334SELECT * EXCEPT (a, b, c, d)
13351335FROM table1
13361336GROUP BY a
13371337
1338- # try zero column with WHERE, 1 row but empty
1339- statement ok
1338+ # try zero column with WHERE, should error
1339+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13401340SELECT * EXCEPT (a, b, c, d)
13411341FROM table1
13421342WHERE a = 1
@@ -1352,15 +1352,15 @@ CREATE TABLE table2 (
13521352 (1, 10, 100, 1000),
13531353 (2, 20, 200, 2000);
13541354
1355- # try zero column with inner JOIN, 2 row but empty
1356- statement ok
1355+ # try zero column with inner JOIN, should error
1356+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13571357WITH t1 AS (SELECT a AS t1_a FROM table1), t2 AS (SELECT a AS t2_a FROM table2)
13581358SELECT * EXCEPT (t1_a, t2_a)
13591359FROM t1
13601360JOIN t2 ON (t1_a = t2_a)
13611361
1362- # try zero column with more JOIN, 2 row but empty
1363- statement ok
1362+ # try zero column with more JOIN, should error
1363+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13641364SELECT * EXCEPT (b1, b2)
13651365FROM (
13661366 SELECT b AS b1 FROM table1
@@ -1369,8 +1369,8 @@ JOIN (
13691369 SELECT b AS b2 FROM table2
13701370) ON b1 = b2
13711371
1372- # try zero column with Window, 2 row but empty
1373- statement ok
1372+ # try zero column with Window, should error
1373+ statement error DataFusion error: Error during planning: SELECT list is empty after resolving \* expressions, the wildcard expanded to zero columns
13741374SELECT * EXCEPT (a, b, row_num)
13751375FROM (
13761376 SELECT
0 commit comments