Repository navigation
Bump sqlglot from 30.21.0 to 30.22.0 - #700
Merged
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Owner
|
@dependabot recreate |
Bumps [sqlglot](https://github.com/tobymao/sqlglot) from 30.21.0 to 30.22.0. - [Commits](tobymao/sqlglot@v30.21.0...v30.22.0) --- updated-dependencies: - dependency-name: sqlglot dependency-version: 30.22.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/pip/sqlglot-30.22.0
branch
from
October 15, 2026 08:29
50cfe03 to
f60194b
Compare
sqlglot 30.22.0 made the MySQL tokenizer follow real MySQL rules and
set DASH_COMMENT_REQUIRES_BOUNDARY = True: "--" only starts a comment
when followed by whitespace. Comments such as "--foo" or "--Comment--"
were tokenized as two dashes plus an identifier, which broke:
- query type detection ("\n--foo\nDROP TABLE foo;" became
"--foo DROP TABLE foo;" and could not be recognised)
- table extraction ("SELECT c1 FROM --Comment-- d1, d2, d3"
returned no tables)
We use the MySQL tokenizer only to strip comments before parsing, and
the library has always treated any "--" as a comment. Add a small
_MySQLCommentTokenizer subclass that sets
DASH_COMMENT_REQUIRES_BOUNDARY = False and use it wherever
MySQL.Tokenizer(dialect="mysql") was created.
Fixes test_inline_comments, test_table_after_comment_not_ignored,
test_delete_query and test_drop_table_query.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps sqlglot from 30.21.0 to 30.22.0.
Commits
b8333a8fix(optimizer)!: remove infer_schema from optimizer (#8552)1d8e1c9fix(optimizer)!: annotate sha2 for redshift properly (#8577)b78bd9cchore: avoid compiling schema.py (#8576)1ebf43eSync w/ integration tests51864e7fix(bigquery)!: edge case in array generationbea35b3fix(bigquery,duckdb): don't drop array elements after a subquery (#8575)361b23bfix(parser): allow SEARCH + CYCLE and CYCLE TO ... DEFAULT [CLAUDE] (#8574)6683ad2fix(optimizer)!: resolve correlated UNNEST fields from projection types (#8571)9f2f4cdfix(optimizer)!: resolve correlated UNNEST fields from projection types (#8571)1e2cc21fix(optimizer)!: preserve CASE branches before always-true conditions (#8572)