barrkel opened a new pull request, #3693: URL: https://github.com/apache/calcite/pull/3693
[CALCITE-6254](https://issues.apache.org/jira/browse/CALCITE-6254) Support table function calls in `FROM` clause without `TABLE` wrapping. Currently, when selecting from a table function, the function call needs to be wrapped in `TABLE()` like this: ``` SELECT * FROM TABLE(table_func('args')); ``` This PR enables this syntax: ``` SELECT * FROM table_func('args'); ``` Three tokens of lookahead are necessary to avoid a conflict in the grammar with the [dynamic columns feature used by Phoenix](https://phoenix.apache.org/dynamic_columns.html) ``` SELECT * FROM EventLog(lastGCTime TIME) ``` Three tokens of lookahead means looking past the `(` and identifier to the presence of a type production. The table extension clause for dynamic columns requires at least one field, so the empty case of `()` is not ambiguous either. -- 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. To unsubscribe, e-mail: commits-unsubscr...@calcite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org