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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix(deps): require SQLGlot versions with compiled wheels (#11582)
Shahmir Varqha19f8f0d36ca5
diff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.mdindex 5650a30dfa..22c4856bfd 100644--- a/docs/getting_started/installation.md+++ b/docs/getting_started/installation.md@@ -152,7 +152,7 @@ uv add "marimo[recommended]"/// tab | install with conda```bash-conda install -c conda-forge marimo "duckdb>=1.0.0" "altair>=5.4.0" pyarrow "polars>=1.9.0" "sqlglot[c]>=23.4" "openai>=1.55.3" "ruff" "nbformat>=5.7.0" "vegafusion>=2.0.0" "vl-convert-python>=1.0.0"+conda install -c conda-forge marimo "duckdb>=1.0.0" "altair>=5.4.0" pyarrow "polars>=1.9.0" "sqlglotc>=30.11.0" "openai>=1.55.3" "ruff" "nbformat>=5.7.0" "vegafusion>=2.0.0" "vl-convert-python>=1.0.0"```///@@ -164,7 +164,7 @@ Installing marimo in this way installs the following additional dependencies and| duckdb>=1.0.0 | SQL cells || altair>=5.4.0 | Plotting in datasource viewer || polars[pyarrow]>=1.9.0 | SQL output back in Python |-| sqlglot[c]>=23.4 | SQL cells parsing |+| sqlglot[c]>=30.11.0 | SQL cells parsing || openai>=1.55.3 | AI features || ruff | Formatting || nbformat>=5.7.0 | Export as IPYNB |diff --git a/examples/sql/connect_to_sqlite.py b/examples/sql/connect_to_sqlite.pyindex c9860c7ae2..387fea8e71 100644--- a/examples/sql/connect_to_sqlite.py+++ b/examples/sql/connect_to_sqlite.py@@ -1,12 +1,13 @@# /// script-# requires-python = ">=3.9"+# requires-python = ">=3.11"# dependencies = [# "duckdb==1.1.1",# "marimo",# "polars==1.18.0",# "pyarrow==18.1.0",# "requests==2.32.3",-# "sqlglot==26.7.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/examples/sql/duckdb_example.py b/examples/sql/duckdb_example.pyindex 46792f7380..577bffd058 100644--- a/examples/sql/duckdb_example.py+++ b/examples/sql/duckdb_example.py@@ -5,7 +5,8 @@# "polars[pyarrow]==1.27.1",# "marimo[sql]",# "duckdb==1.2.2",-# "sqlglot==26.13.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/examples/sql/misc/database_explorer.py b/examples/sql/misc/database_explorer.pyindex 5d2008a4d1..4bf96d8f50 100644--- a/examples/sql/misc/database_explorer.py+++ b/examples/sql/misc/database_explorer.py@@ -1,5 +1,5 @@# /// script-# requires-python = ">=3.9"+# requires-python = ">=3.11"# dependencies = [# "duckdb==1.1.1",# "marimo",@@ -7,7 +7,8 @@# "pandas==2.2.3",# "polars==1.18.0",# "pyarrow==18.1.0",-# "sqlglot==26.19.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/marimo/_smoke_tests/sql/redshift_example.py b/marimo/_smoke_tests/sql/redshift_example.pyindex 3f1fcddbeb..49ed56c5cc 100644--- a/marimo/_smoke_tests/sql/redshift_example.py+++ b/marimo/_smoke_tests/sql/redshift_example.py@@ -5,7 +5,8 @@# "pandas==2.2.3",# "polars[pyarrow]==1.30.0",# "redshift-connector[full]==2.1.7",-# "sqlglot==26.23.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/marimo/_smoke_tests/sql/sqlmodel_engine.py b/marimo/_smoke_tests/sql/sqlmodel_engine.pyindex 2b2ac28517..4fe3c42591 100644--- a/marimo/_smoke_tests/sql/sqlmodel_engine.py+++ b/marimo/_smoke_tests/sql/sqlmodel_engine.py@@ -6,7 +6,8 @@# "marimo",# "polars==1.21.0",# "psycopg[binary]==3.2.4",-# "sqlglot==26.3.9",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# "sqlmodel==0.0.22",# ]# ///diff --git a/marimo/_smoke_tests/third_party/lonboard_example.py b/marimo/_smoke_tests/third_party/lonboard_example.pyindex fb48292161..cdd59ebe7a 100644--- a/marimo/_smoke_tests/third_party/lonboard_example.py+++ b/marimo/_smoke_tests/third_party/lonboard_example.py@@ -7,7 +7,8 @@# "polars==1.23.0",# "pyarrow==19.0.1",# "shapely==2.0.7",-# "sqlglot==26.6.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/marimo/_tutorials/markdown_format.md b/marimo/_tutorials/markdown_format.mdindex f7ca5d131e..0280ae9075 100644--- a/marimo/_tutorials/markdown_format.md+++ b/marimo/_tutorials/markdown_format.md@@ -10,7 +10,8 @@ pyproject: |-"marimo","duckdb==1.2.2","matplotlib==3.10.9",- "sqlglot==26.16.2",+ "sqlglot[c]>=30.11.0; python_version < '3.15'",+ "sqlglot[c]>=30.23.0; python_version >= '3.15'","pandas==2.3.3","pyarrow==23.0.0",]diff --git a/marimo/_tutorials/sql.py b/marimo/_tutorials/sql.pyindex 974d3c0754..1fceeb8e1f 100644--- a/marimo/_tutorials/sql.py+++ b/marimo/_tutorials/sql.py@@ -10,7 +10,8 @@# "plotly==6.7.0",# "polars==1.27.1",# "pyarrow==19.0.1",-# "sqlglot==26.13.0",+# "sqlglot[c]>=30.11.0; python_version < '3.15'",+# "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///diff --git a/pyproject.toml b/pyproject.tomlindex e956aa30d4..a6d063e1c8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -92,8 +92,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- # 30.7.0 pins sqlglotc to the matching SQLGlot version.- "sqlglot[c]>=30.7.0" # SQL cells parsing;+ "sqlglot[c]>=30.11.0; python_version < '3.15'",+ "sqlglot[c]>=30.23.0; python_version >= '3.15'",]# For per-notebook sandboxed kernels. pyzmq moved to the core@@ -144,7 +144,8 @@ 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>=30.7.0",+ "sqlglot>=30.11.0; python_version < '3.15'",+ "sqlglot>=30.23.0; python_version >= '3.15'",# Stubs for optional dataframe backends"pyarrow-stubs",# For linting@@ -179,7 +180,7 @@ test = [# tests used to get it only through matplotlib.# Forced for modern matplotlib."matplotlib~=3.10.7; python_version < '3.15'",- "numpy",+ "numpy>=1.23.4","pillow>=9","zstandard>=0.21.0; python_version < '3.15'","cffi>=1.16.0",@@ -199,7 +200,8 @@ test-optional = ["altair>=5.4.0","plotly>=5.14.0","polars>=1.32.2",- "sqlglot>=30.7.0",+ "sqlglot>=30.11.0; python_version < '3.15'",+ "sqlglot>=30.23.0; python_version >= '3.15'","sqlalchemy[asyncio]>=2.0.40","obstore>=0.8.2","huggingface-hub>=1.24.0",@@ -262,7 +264,8 @@ typecheck = ["duckdb>=1.0.0","narwhals>=2.0.0","matplotlib>=3.8.0",- "sqlglot>=30.7.0",+ "sqlglot>=30.11.0; python_version < '3.15'",+ "sqlglot>=30.23.0; python_version >= '3.15'","sqlalchemy[asyncio]>=2.0.40","obstore>=0.8.2","huggingface_hub>=1.24.0",diff --git a/tests/_convert/markdown/snapshots/sql.md.txt b/tests/_convert/markdown/snapshots/sql.md.txtindex ead6130741..ea842fe05f 100644--- a/tests/_convert/markdown/snapshots/sql.md.txt+++ b/tests/_convert/markdown/snapshots/sql.md.txt@@ -15,7 +15,8 @@ header: |-# "plotly==6.7.0",# "polars==1.27.1",# "pyarrow==19.0.1",- # "sqlglot==26.13.0",+ # "sqlglot[c]>=30.11.0; python_version < '3.15'",+ # "sqlglot[c]>=30.23.0; python_version >= '3.15'",# ]# ///---diff --git a/tests/snapshots/optional-dependencies-sql.txt b/tests/snapshots/optional-dependencies-sql.txtindex c701d19ebc..2a82d945bd 100644--- a/tests/snapshots/optional-dependencies-sql.txt+++ b/tests/snapshots/optional-dependencies-sql.txt@@ -1,3 +1,4 @@duckdb>=1.0.0polars[pyarrow]>=1.9.0-sqlglot[c]>=30.7.0\ No newline at end of file+sqlglot[c]>=30.11.0; python_version < '3.15'+sqlglot[c]>=30.23.0; python_version >= '3.15'\ No newline at end of file