You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "LucaCappelletti94 (via GitHub)" <gi...@apache.org> on 2026/10/17 14:34:48 UTC

[PR] SQLite: Support a parenthesized table name in `FROM` [datafusion-sqlparser-rs]

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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] SQLite: Support a parenthesized table name in `FROM` [datafusion-sqlparser-rs]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #2658:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2658#issuecomment-6235163620

   ## [Codecov](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2658?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 81.25%. Comparing base ([`7b5821d`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/7b5821dd45ce13ba6a77b24c39854a863848c2b2?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`c98d2c9`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/c98d2c9d52ea21c0c7904042279d7fd8a5304e51?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##             main    #2658      +/-   ##
   ==========================================
   + Coverage   81.24%   81.25%   +0.01%     
   ==========================================
     Files          42       42              
     Lines       33901    33904       +3     
     Branches    33901    33904       +3     
   ==========================================
   + Hits        27543    27549       +6     
   + Misses       2792     2789       -3     
     Partials     3566     3566              
   ```
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2658?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   </details>


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] SQLite: Support a parenthesized table name in `FROM` [datafusion-sqlparser-rs]

Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 commented on PR #2658:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2658#issuecomment-6248571630

   Merging, thanks @s5dsn-eqee for the review!
   
   cc @alamb @iffyio


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] SQLite: Support a parenthesized table name in `FROM` [datafusion-sqlparser-rs]

Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 merged PR #2658:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2658


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org