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.

Update sqlglot dependency to include 'rs' variant in for better perf (#6584)

Myles Scolnick3644b6fcadfc
diff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.md
index 4483ec2b22..75692b3864 100644
--- a/docs/getting_started/installation.md
+++ b/docs/getting_started/installation.md
@@ -115,22 +115,21 @@ 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>=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" "sqlglot[rs]>=23.4" "openai>=1.55.3" "ruff" "nbformat>=5.7.0" "vegafusion>=2.0.0" "vl-convert-python>=1.0.0"
```
///
Installing marimo in this way installs the following additional dependencies and unlocks the following features:
-| Dependency | Feature |
-|----------------------------|----------------------------------|
-| duckdb>=1.0.0 | SQL cells |
+| Dependency | Feature |
+|----------------------------|---------------------------------|
+| 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>=23.4 | SQL cells parsing |
+| sqlglot[rs]>=23.4 | SQL cells parsing |
| openai>=1.55.3 | AI features |
| ruff | Formatting |
| nbformat>=5.7.0 | Export as IPYNB |
| vegafusion>=2.0.0 | Performant charting |
| vl-convert-python>=1.0.0 | Required by vegafusion |
-
diff --git a/pyproject.toml b/pyproject.toml
index 705a86dc27..f0142b02b3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -84,7 +84,7 @@ marimo_converter = "marimo._utils.docs:MarimoConverter"
sql = [
"duckdb>=1.0.0",
"polars[pyarrow]>=1.9.0",
- "sqlglot>=26.2.0"
+ "sqlglot[rs]>=26.2.0"
]
# List of deps that are recommended for most users
@@ -94,7 +94,7 @@ recommended = [
"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>=26.2.0", # SQL cells parsing
+ "sqlglot[rs]>=26.2.0", # SQL cells parsing
"openai>=1.55.3", # AI features
"ruff", # Formatting
"nbformat>=5.7.0", # Export as IPYNB
@@ -108,7 +108,7 @@ dev = [
"opentelemetry-sdk~=1.26.0",
# For SQL
"duckdb>=1.0.0",
- "sqlglot>=26.2.0",
+ "sqlglot[rs]>=26.2.0",
# For linting
"ruff>=0.13.1",
# For AI
@@ -161,7 +161,7 @@ dependencies = [
# Types in 2.2.0 don't work great with mypy
"narwhals>=1.34.1, <2.2.0",
"matplotlib>=3.8.0",
- "sqlglot>=26.2.0",
+ "sqlglot[rs]>=26.2.0",
"sqlalchemy>=2.0.40",
"google-genai>=1.0.0",
"openai>=1.55.3",
@@ -243,7 +243,7 @@ extra-dependencies = [
"altair>=5.4.0",
"plotly>=5.14.0",
"polars>=1.32.2",
- "sqlglot>=26.2.0",
+ "sqlglot[rs]>=26.2.0",
"sqlalchemy>=2.0.40",
"pyiceberg>=0.9.0",
# For testing clickhouse