pengzhiwei2018 commented on a change in pull request #1138: [CALCITE-1581] UDTF
like in hive
URL: https://github.com/apache/calcite/pull/1138#discussion_r314567970
##########
File path: core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java
##########
@@ -3948,6 +3950,30 @@ private void convertSelectList(
}
}
+ /**
+ * Convert the table function in select to Join or TableFunctionScan.
+ * @param bb Blackboard
+ * @param select SqlSelect
+ * */
+ private void convertTableFunctionInSelect(Blackboard bb, SqlSelect select) {
+ SqlBasicCall tableFunction = validator.getTableFunctionInSelect(select);
+ // rewrite the table function if select list contain one
+ if (tableFunction != null) {
Review comment:
If select cotains a table function, It will be converted to a join.
----------------------------------------------------------------
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