Skip to content

Bump sqlglot from 30.6.0 to 30.7.0#623

Merged
github-actions[bot] merged 2 commits intomasterfrom
dependabot/pip/sqlglot-30.7.0
May 5, 2026
Merged

Bump sqlglot from 30.6.0 to 30.7.0#623
github-actions[bot] merged 2 commits intomasterfrom
dependabot/pip/sqlglot-30.7.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 5, 2026

Bumps sqlglot from 30.6.0 to 30.7.0.

Commits
  • 693f4ed Sync w/ integration tests
  • fab6ccf feat(duckdb): Add transpilation support for HEX_ENCODE function (#7591)
  • 9bd7e7c chore(publish): Do not build sqlglotc wheels for 3.9 (#7600)
  • 43be379 Chore: bump sqlglot-mypy to 1.20.0.post6 (#7598)
  • e550d00 fix(parser): FROM with JOIN subqueries (#7597)
  • 17432c6 Fix(generator)!: do not indent newlines within identifiers in pretty mode fix...
  • b573c46 Update docstring for annotate types closes #7587
  • 327efbf Sync w/ integration tests
  • 25552ee Feat(optimizer): canonicalize internal query names (#7580)
  • 9f169ab Fix(redshift): support APPROXIMATE PERCENTILE_DISC round-trip (#7585)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sqlglot](https://github.com/tobymao/sqlglot) from 30.6.0 to 30.7.0.
- [Commits](tobymao/sqlglot@v30.6.0...v30.7.0)

---
updated-dependencies:
- dependency-name: sqlglot
  dependency-version: 30.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 5, 2026
@dependabot dependabot Bot requested review from collerek and macbre as code owners May 5, 2026 04:14
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels May 5, 2026
@github-actions github-actions Bot enabled auto-merge (squash) May 5, 2026 04:14
@macbre
Copy link
Copy Markdown
Owner

macbre commented May 5, 2026

@collerek - can you take a look at the failing tests?

FAILED test/test_getting_tables.py::test_get_tables_with_leading_digits - AssertionError: assert ['0020_big_table'] == []

@macbre macbre assigned macbre and collerek and unassigned macbre May 5, 2026
…he pollution

sqlglot 30.7.0 introduced a per-class TokenizerCore cache keyed only by
``type(self)``.  The built core depends on
``self.dialect.IDENTIFIERS_CAN_START_WITH_DIGIT``, but the dialect
argument is not part of the cache key.  When ``MySQL.Tokenizer()`` is
instantiated without an explicit dialect, the resolved dialect falls
back to the default and the cached core has
``identifiers_can_start_with_digit=False``.  Subsequent
``sqlglot.parse(..., dialect="mysql")`` calls reuse that bad core and
fail to parse identifiers starting with digits (e.g. ``0020_big_table``
is split into NUMBER + VAR), producing a degraded ``Table()`` AST.

Passing ``dialect="mysql"`` at the two call sites in ``comments.py``
primes the cache with the correct MySQL semantics and keeps the test
``test_get_tables_with_leading_digits`` passing under sqlglot 30.7.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot merged commit f2fc3fc into master May 5, 2026
11 checks passed
@github-actions github-actions Bot deleted the dependabot/pip/sqlglot-30.7.0 branch May 5, 2026 11:24
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.

2 participants