LucaCappelletti94 opened a new pull request, #2658:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2658

   SQLite accepts a table wrapped in parentheses in `FROM`, as in `SELECT * 
FROM (t)`, `SELECT * FROM (t) AS a` or `SELECT * FROM ((SELECT 1) AS s)`, since 
its `table-or-subquery` grammar allows a parenthesized `table-or-subquery` 
(https://www.sqlite.org/syntax/table-or-subquery.html). The SQLite dialect 
rejected these with `Expected: joined table, found: )`.
   
   `SQLiteDialect` now enables the existing 
`supports_parens_around_table_factor` capability, already used by Snowflake and 
the generic dialect, and the trait documentation links SQLite's grammar.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to