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 15:58:32 UTC
[PR] SQLite: Accept a block comment left open at end of input [datafusion-sqlparser-rs]
LucaCappelletti94 opened a new pull request, #2661:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2661
SQLite ends a `/* ... */` comment at the next `*/` or at the end of input, whichever comes first (https://www.sqlite.org/lang_comment.html), so `SELECT 1 /* x` runs and returns `1`. The tokenizer rejected it in every dialect with `Unexpected EOF while in a multi-line comment`.
A new dialect method, `supports_unterminated_block_comments`, enabled for SQLite, makes the tokenizer return the open comment as whitespace when the input ends inside it. Other dialects keep the error, which matches DuckDB and PostgreSQL rejecting an unterminated `/*` comment. Tests cover SQLite, including input that is only an open comment, and the exact error in every other dialect.
Principal doubt I have here is that ONLY SQLite to my knowledge has this quirk, so I wonder whether approaching this as a `Dialect` method is the wrong manner.
--
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: Accept a block comment left open at end of input [datafusion-sqlparser-rs]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #2661:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2661#issuecomment-6236231422
## [Codecov](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2661?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 ([`1aabd12`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/1aabd12d12234de55b27f658add789eed1eaaa5c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`be9da2b`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/be9da2b48e286e8e36cfbcedae9dc43cb880de85?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 #2661 +/- ##
=======================================
Coverage 81.25% 81.25%
=======================================
Files 42 42
Lines 33910 33919 +9
Branches 33910 33919 +9
=======================================
+ Hits 27553 27562 +9
Misses 2792 2792
Partials 3565 3565
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2661?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: Accept a block comment left open at end of input [datafusion-sqlparser-rs]
Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 merged PR #2661:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2661
--
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