Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix(deps): require SQLGlot with matching compiled accelerator (#11322)

Myles Scolnickb284933ff277
diff --git a/pyproject.toml b/pyproject.toml
index 2289e2bed0..726e2d822d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -93,7 +93,8 @@ marimo_markdown_converter = "marimo._utils.docs:MarkdownConverter"
sql = [
"duckdb>=1.0.0", # SQL cells
"polars[pyarrow]>=1.9.0", # SQL output back in Python
- "sqlglot[c]>=26.8.0" # SQL cells parsing;
+ # 30.7.0 pins sqlglotc to the matching SQLGlot version.
+ "sqlglot[c]>=30.7.0" # SQL cells parsing;
]
# For per-notebook sandboxed kernels. pyzmq moved to the core
@@ -144,7 +145,7 @@ dev = [
# For SQL. duckdb has no cp315 wheels as of 2026-10; drop the marker when
# published.
"duckdb>=1.0.0; python_version < '3.15'",
- "sqlglot[c]>=26.8.0",
+ "sqlglot[c]>=30.7.0",
# Stubs for optional dataframe backends
"pyarrow-stubs",
# For linting
@@ -195,7 +196,7 @@ test-optional = [
"altair>=5.4.0",
"plotly>=5.14.0",
"polars>=1.32.2",
- "sqlglot[c]>=26.8.0",
+ "sqlglot[c]>=30.7.0",
"sqlalchemy[asyncio]>=2.0.40",
"obstore>=0.8.2",
"huggingface-hub>=1.24.0",
@@ -256,7 +257,7 @@ typecheck = [
"duckdb>=1.0.0",
"narwhals>=2.0.0",
"matplotlib>=3.8.0",
- "sqlglot[c]>=26.8.0",
+ "sqlglot[c]>=30.7.0",
"sqlalchemy[asyncio]>=2.0.40",
"obstore>=0.8.2",
"huggingface_hub>=1.24.0",
diff --git a/tests/snapshots/optional-dependencies-sql.txt b/tests/snapshots/optional-dependencies-sql.txt
index 781b8b26a9..c701d19ebc 100644
--- a/tests/snapshots/optional-dependencies-sql.txt
+++ b/tests/snapshots/optional-dependencies-sql.txt
@@ -1,3 +1,3 @@
duckdb>=1.0.0
polars[pyarrow]>=1.9.0
-sqlglot[c]>=26.8.0
\ No newline at end of file
+sqlglot[c]>=30.7.0
\ No newline at end of file