You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/08/16 02:52:03 UTC
[GitHub] [calcite] pengzhiwei2018 commented on a change in pull request
#1138: [CALCITE-1581] UDTF like in hive
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:
users@infra.apache.org
With regards,
Apache Git Services