pengzhiwei2018 commented on a change in pull request #1138: [CALCITE-1581] UDTF 
like in hive
URL: https://github.com/apache/calcite/pull/1138#discussion_r314567792
 
 

 ##########
 File path: 
core/src/test/java/org/apache/calcite/test/SqlToRelConverterTest.java
 ##########
 @@ -1058,6 +1058,57 @@ public void testJoinUsingDynamicTable() {
     sql("select * from dept, lateral table(ramp(dept.deptno))").ok();
   }
 
+  @Test public void testTableFunctionInSelect() {
+    sql("select table_func(dept.deptno) as (f0, f1) from dept")
+        .conformance(SqlConformance.HIVE)
+        .ok();
+  }
 
 Review comment:
   It works well without `as`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to