Skip to content

Bump sqlglot from 30.21.0 to 30.22.0 - #700

Merged
github-actions[bot] merged 3 commits into
masterfrom
dependabot/pip/sqlglot-30.22.0
Oct 15, 2026
Merged

github-actions[bot] merged 3 commits into
masterfrom
dependabot/pip/sqlglot-30.22.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps sqlglot from 30.21.0 to 30.22.0.

Commits
  • b8333a8 fix(optimizer)!: remove infer_schema from optimizer (#8552)
  • 1d8e1c9 fix(optimizer)!: annotate sha2 for redshift properly (#8577)
  • b78bd9c chore: avoid compiling schema.py (#8576)
  • 1ebf43e Sync w/ integration tests
  • 51864e7 fix(bigquery)!: edge case in array generation
  • bea35b3 fix(bigquery,duckdb): don't drop array elements after a subquery (#8575)
  • 361b23b fix(parser): allow SEARCH + CYCLE and CYCLE TO ... DEFAULT [CLAUDE] (#8574)
  • 6683ad2 fix(optimizer)!: resolve correlated UNNEST fields from projection types (#8571)
  • 9f2f4cd fix(optimizer)!: resolve correlated UNNEST fields from projection types (#8571)
  • 1e2cc21 fix(optimizer)!: preserve CASE branches before always-true conditions (#8572)
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested review from collerek and macbre as code owners October 14, 2026 13:47
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 14, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) October 14, 2026 13:48
@socket-security

socket-security Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpypi/​sqlglot@​30.21.0 ⏵ 30.22.0100100100100100

View full report

@macbre

macbre commented Oct 15, 2026

Copy link
Copy Markdown
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
dependabot Bot force-pushed the dependabot/pip/sqlglot-30.22.0 branch from 50cfe03 to f60194b Compare October 15, 2026 08:29
macbre and others added 2 commits October 15, 2026 11:51
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>
@macbre macbre self-assigned this Oct 15, 2026
@github-actions
github-actions Bot merged commit 76261f3 into master Oct 15, 2026
11 checks passed
@github-actions
github-actions Bot deleted the dependabot/pip/sqlglot-30.22.0 branch October 15, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant