Skip to content

Commit 140c21d

Browse files
committed
[CALCITE-7246] UNNEST in Spark should convert to EXPLODE/POSEXPLODE
1 parent 44a1875 commit 140c21d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7834,7 +7834,7 @@ private void checkLiteral2(String expression, String expected) {
78347834
+ "FROM (VALUES (0)) AS \"t\" (\"ZERO\"))) WITH ORDINALITY AS \"t0\" (\"col_0\", \"ORDINALITY\")";
78357835
final String expectedSpark = "SELECT *\n"
78367836
+ "FROM POSEXPLODE((SELECT ARRAY (1, 2, 3)\n"
7837-
+ "FROM (VALUES (0)) AS `t` (`ZERO`))) AS `t0` (`col_0`, `ORDINALITY`)";
7837+
+ "FROM (VALUES (0)) `t` (`ZERO`))) `t0` (`col_0`, `ORDINALITY`)";
78387838
sql(query)
78397839
.ok(expected)
78407840
.withSpark().ok(expectedSpark);

0 commit comments

Comments
 (0)