dssysolyatin commented on code in PR #2789:
URL: https://github.com/apache/calcite/pull/2789#discussion_r952167434


##########
core/src/test/java/org/apache/calcite/test/SqlValidatorTest.java:
##########
@@ -8363,6 +8363,11 @@ public void _testGroupExpressionEquivalenceParams() {
     // UNNEST MULTISET gets the same treatment as UNNEST ARRAY.
     sql("select * from unnest(multiset [1, 2, 1]) as f")
         .type("RecordType(INTEGER NOT NULL F) NOT NULL");
+
+    // The magic doesn't happen if the UNNEST is used without AS operator.
+    sql("select * from (SELECT ARRAY['banana'] as fruits) as t, 
UNNEST(t.fruits)")
+            .type("RecordType(CHAR(6) NOT NULL ARRAY NOT NULL FRUITS, "
+                    + "CHAR(6) NOT NULL EXPR$0) NOT NULL").ok();

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to