Skip to content

chore(deps): update sqlglot requirement from ~=29.0.1 to ~=30.2.0#322

Merged
tekumara merged 6 commits intomainfrom
dependabot/pip/sqlglot-approx-eq-30.2.0
Apr 3, 2026
Merged

chore(deps): update sqlglot requirement from ~=29.0.1 to ~=30.2.0#322
tekumara merged 6 commits intomainfrom
dependabot/pip/sqlglot-approx-eq-30.2.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 2, 2026

Updates the requirements on sqlglot to permit the latest version.

Commits
  • 8e0b9f5 fix(snowflake): Fix annotate_types crashes for FLATTEN over STRUCT and Within...
  • c9562de Sync w/ integration tests
  • 91dfbf3 Sync w/ integration tests
  • 3f31ffe feat(duckdb): Add transpilation support for CHR function. (#7430)
  • f9d37c9 Sync w/ integration tests
  • 6346237 Typing: improve expressions.builders module typing coverage (#7429)
  • c2b69d4 Feat(sqlite): support virtual table ddl closes #7425
  • 1fb5ff0 Sync w/ integration tests
  • 62d7176 feat(duckdb): Add transpilation support for BIT_LENGTH (#7421)
  • ab8f808 refactor(expressions): Remove mypyc init_subclass workaround and simplify...
  • Additional commits viewable in compare view

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 2, 2026
@github-actions github-actions bot enabled auto-merge (squash) April 2, 2026 01:47
Updates the requirements on [sqlglot](https://github.com/tobymao/sqlglot) to permit the latest version.
- [Commits](tobymao/sqlglot@v29.0.1...v30.2.0)

---
updated-dependencies:
- dependency-name: sqlglot
  dependency-version: 30.2.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/sqlglot-approx-eq-30.2.0 branch from 2587813 to a5fa0a9 Compare April 2, 2026 01:49
tekumara added 5 commits April 3, 2026 16:31
sqlglot 30 removed the expression_core module that this file imported directly. Switching the placeholder helpers to exp.Expression keeps the typing intent the same while using the stable public API, which lets the test suite import fakesnow again under the upgraded dependency.
sqlglot 30 parses TO_VARIANT as exp.ToVariant instead of only emitting an anonymous function call. This commit teaches the transform to rewrite that dedicated node to TO_JSON while still preserving the older anonymous fallback, so TO_VARIANT queries keep producing JSON values under the upgraded parser.
sqlglot 30 routes SHA2 helpers through built-in SHA2 and SHA2Digest expressions, and the old custom SHA256 expression class no longer instantiates cleanly under the new parent-setting rules. This commit rewrites the transform to emit plain SQL function expressions for SHA256, SHA2, and SHA2_BINARY cases so the existing Snowflake compatibility behavior keeps working without relying on the removed internal construction path.
Pyright rejects exp.Expression as a private sqlglot type under 30.x, even though parse_one and related APIs are publicly typed in terms of Expr. Switch the affected annotations and generic isinstance checks to Expr across fakesnow and the related tests, and include the small ruff/ruff-format cleanup from rerunning hooks so make pyright is green again.
@tekumara tekumara disabled auto-merge April 3, 2026 09:18
@tekumara tekumara enabled auto-merge (squash) April 3, 2026 09:18
@tekumara tekumara disabled auto-merge April 3, 2026 09:18
@tekumara tekumara enabled auto-merge (squash) April 3, 2026 09:18
@tekumara tekumara disabled auto-merge April 3, 2026 09:18
@tekumara tekumara merged commit 3b434fa into main Apr 3, 2026
1 check passed
@tekumara tekumara deleted the dependabot/pip/sqlglot-approx-eq-30.2.0 branch April 3, 2026 09:18
tekumara pushed a commit that referenced this pull request Apr 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.11.5](v0.11.4...v0.11.5)
(2026-04-11)


### Features

* implicit VARCHAR-to-numeric cast for aggregate functions
([#326](#326))
([3f47c30](3f47c30))


### Bug Fixes

* implicit VARCHAR-to-number cast matches snowflake column names
([5733c70](5733c70))


### Chores

* **deps-dev:** update snowflake-sqlalchemy requirement from ~=1.8.2 to
~=1.9.0 in the pip group across 1 directory
([#321](#321))
([b8f4ede](b8f4ede))
* **deps:** update duckdb requirement from ~=1.4.1 to ~=1.5.1
([#323](#323))
([e8f49a0](e8f49a0))
* **deps:** update sqlglot requirement from ~=29.0.1 to ~=30.2.0
([#322](#322))
([3b434fa](3b434fa))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: potatobot-prime[bot] <132267321+potatobot-prime[bot]@users.noreply.github.com>
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