Skip to content

fix(dependencies): limit duckdb <2 til we can upgrade - #6158

Merged
cmgoffena13 merged 2 commits into
SQLMesh:mainfrom
cmgoffena13:fix/limit-duckdb
Oct 21, 2026
Merged

cmgoffena13 merged 2 commits into
SQLMesh:mainfrom
cmgoffena13:fix/limit-duckdb

Conversation

@cmgoffena13

Copy link
Copy Markdown
Collaborator

Description

duckdb 2.0 has come out. Our dependencies have duckdb >= 0.10.0 unbounded.

SQLMesh still uses SQLGlot 30.8, which doesn't support 2.0 and still uses single-arrow lambda syntax so duckdb tests are affected here.

2.0 moves away from the single-arrow lambda syntax. ex. x -> x + 1 (does not support anymore without flag) and now has integer division // and modulo % raise when the divisor is zero instead of return NULL (old behavior)

Duckdb 1.x cannot open created Duckdb 2.0 databases.

Motherduck will fail on client connect because it does not support 2.0 yet.

DuckDB can fail due to the dialect transpilation issues.

We'll have to make some adjustments to have SQLMesh support duckdb 2.0

Test Plan

N/A -- run CI -- If dependencies are not locked, a SQLMesh install will add duckdb 2.0 and will error on the above circumstances.

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
@cmgoffena13
cmgoffena13 merged commit f6527ff into SQLMesh:main Oct 21, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants