Description
Currently, per the SQL standard, if you want to use a table function, you need to use the TABLE keyword, like this:
SELECT * FROM (TABLE myFun(1, 'a'))
In Microsoft SQL Server you can omit the TABLE:
SELECT * FROM myFun(1, 'a')
This makes the SQL grammar more complicated (and possibly ambiguous, I haven't checked), and makes name-resolution during validation more complicated (tables and table-functions would now occupy the same namespace).
If we supported this, it would be via a new method in SqlConformance. It would be enabled in the SQL Server conformance, disabled otherwise.
Attachments
Issue Links
- duplicates
-
CALCITE-6254 Support table function calls in FROM clause without TABLE() wrapper
- Closed
- is duplicated by
-
CALCITE-4396 Allows table valued functions of FROM and JOIN context without TABLE clause
- Closed
- relates to
-
CALCITE-3272 TUMBLE Table-valued Function
- Closed
-
CALCITE-1472 Support CROSS/OUTER APPLY syntax
- Closed