mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
![]() 1) Table-valued functions (`FROM possibly_qualified.fn(arg1, ...)`) is not part of ANSI SQL, but is supported in Postgres and MSSQL at least: - "38.5.7. SQL Functions as Table Sources" <https://www.postgresql.org/docs/current/xfunc-sql.html#XFUNC-SQL-TABLE-FUNCTIONS> - `user_defined_function` in "FROM (Transact-SQL)" <https://docs.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql?view=sql-server-2017> I've considered renaming TableFactor::Table to something else (Object?), now that it can be a TVF, but couldn't come up with a satisfactory name. 2) "WITH hints" is MSSQL-specific syntax <https://docs.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-table?view=sql-server-2017> Note that MSSQL supports the following ways of specifying hints, which are parsed with varying degrees of accuracy: - `FROM tab (NOLOCK)` -- deprecated syntax, parsed as a function with a `NOLOCK` argument - `FROM tab C (NOLOCK)` -- deprecated syntax, rejected ATM - `FROM TAB C WITH (NOLOCK)` -- OK |
||
---|---|---|
.. | ||
sqlparser_ansi.rs | ||
sqlparser_generic.rs | ||
sqlparser_postgres.rs |