You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: datafusion/sqllogictest/test_files/spark/generator/explode_outer.slt
-34Lines changed: 0 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -128,40 +128,6 @@ SELECT unnest(xs), explode_outer(xs) FROM int_lists;
128
128
statement error DataFusion error: Error during planning: Cannot mix `unnest\(\.\.\.\)` \(or `explode\(\.\.\.\)`\) with `explode_outer\(\.\.\.\)` in the same SELECT
129
129
SELECT explode(xs), explode_outer(xs) FROM int_lists;
set datafusion.spark.allow_multiple_generators = false;
140
-
141
-
# Two same-mode generators in one SELECT — rejected only under strict mode.
142
-
# (Aliases sidestep the unique-output-name check so we hit the new error path.)
143
-
statement error DataFusion error: Error during planning: \[UNSUPPORTED_GENERATOR\.MULTI_GENERATOR\] Only one generator function
144
-
SELECT explode(xs) AS a, explode(xs) AS b FROM int_lists;
145
-
146
-
statement error DataFusion error: Error during planning: \[UNSUPPORTED_GENERATOR\.MULTI_GENERATOR\] Only one generator function
147
-
SELECT explode_outer(xs) AS a, explode_outer(xs) AS b FROM int_lists;
148
-
149
-
# Mixed-mode is rejected regardless of this flag (the mix message wins
150
-
# because it's a technical constraint, not a stylistic one).
151
-
statement error DataFusion error: Error during planning: Cannot mix `unnest\(\.\.\.\)` \(or `explode\(\.\.\.\)`\) with `explode_outer\(\.\.\.\)` in the same SELECT
152
-
SELECT unnest(xs) AS a, explode_outer(xs) AS b FROM int_lists;
153
-
154
-
# A single generator still works under strict mode.
155
-
query I
156
-
SELECT explode_outer(xs) AS x FROM int_lists WHERE id = 1 ORDER BY x;
157
-
----
158
-
10
159
-
20
160
-
30
161
-
162
-
statement ok
163
-
set datafusion.spark.allow_multiple_generators = true;
164
-
165
131
##############################
166
132
# 6. Chained explode → explode_outer via subquery.
167
133
# `explode(xs)` (inner) drops NULL and empty outer rows, then
0 commit comments