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

 ##########
 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:
   What will happen if there is a table function without as ? Can you add a 
test about it?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to