julianhyde commented on a change in pull request #1138: [CALCITE-1581] UDTF
like in hive
URL: https://github.com/apache/calcite/pull/1138#discussion_r315370113
##########
File path: core/src/test/java/org/apache/calcite/test/TableFunctionTest.java
##########
@@ -408,6 +408,23 @@ private Connection getConnectionWithMultiplyFunction()
with().query(q).returnsUnordered("C=7");
}
+ @Test public void testTableFunctionInSelect() {
+ final String q = "select * from ("
+ + "select f0, \"s\".\"fibonacci2\"(20) as (c)"
+ + " from (select 1 as f0)"
+ + ")";
Review comment:
> I think we'd better do exactly the same as Hive does.
Not necessarily. Hive does some pretty dumb things, and I don't want to let
that stupidity into Calcite. If Hive differs from standard SQL, we need to talk
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