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.

feat(sql): wire Dremio dialect into the SQL editor (#9817)

Shahmir Varqha1e3c8753cb3c
diff --git a/frontend/package.json b/frontend/package.json
index cdc961db83..073c1b20a0 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -57,7 +57,7 @@
"@marimo-team/codemirror-ai": "^0.3.7",
"@marimo-team/codemirror-languageserver": "^1.16.12",
"@marimo-team/codemirror-mcp": "^0.1.5",
- "@marimo-team/codemirror-sql": "^0.2.4",
+ "@marimo-team/codemirror-sql": "^0.2.8",
"@marimo-team/llm-info": "workspace:*",
"@marimo-team/marimo-api": "workspace:*",
"@marimo-team/react-slotz": "^0.2.0",
diff --git a/frontend/src/core/codemirror/language/languages/sql/utils.ts b/frontend/src/core/codemirror/language/languages/sql/utils.ts
index 2189936cf2..e7ff328155 100644
--- a/frontend/src/core/codemirror/language/languages/sql/utils.ts
+++ b/frontend/src/core/codemirror/language/languages/sql/utils.ts
@@ -14,6 +14,7 @@ import {
} from "@codemirror/lang-sql";
import {
BigQueryDialect,
+ DremioDialect,
DuckDBDialect,
} from "@marimo-team/codemirror-sql/dialects";
import type { DataSourceConnection } from "@/core/kernel/messages";
@@ -97,6 +98,8 @@ export function guessDialect(
return PLSQL;
case "bigquery":
return BigQueryDialect;
+ case "dremio":
+ return DremioDialect;
case "timescaledb":
return PostgreSQL; // TimescaleDB is a PostgreSQL dialect
case "awsathena":
@@ -116,7 +119,6 @@ export function guessDialect(
case "spark":
case "databricks":
case "datafusion":
- case "dremio":
Logger.debug("Unsupported dialect", { dialect });
return ModifiedStandardSQL;
default:
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1f1e3a895f..58d25617af 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -146,8 +146,8 @@ importers:
specifier: ^0.1.5
version: 0.1.5(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@modelcontextprotocol/[email protected])
'@marimo-team/codemirror-sql':
- specifier: ^0.2.4
- version: 0.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
+ specifier: ^0.2.8
+ version: 0.2.8(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
'@marimo-team/llm-info':
specifier: workspace:*
version: link:../packages/llm-info
@@ -1710,8 +1710,8 @@ packages:
'@codemirror/view': ^6
'@modelcontextprotocol/sdk': ^1
- '@marimo-team/[email protected]':
- resolution: {integrity: sha512-oRku1syn4lQHOfA0RtYmbGrzUkcYdlUhh8pGCZ9yrVgKsXIdP2BiCLc1CTY08xZGzF4O2JPMbUDsWpQLIgOL0A==}
+ '@marimo-team/[email protected]':
+ resolution: {integrity: sha512-OT9JsZz3Nfynm9wKTDbqnfQ2YYn5tclrKpN3npUr4JuuKvqT2Z9nCDGS4IH86prHboeR0vJy+2Q+8zK2LS03yA==}
peerDependencies:
'@codemirror/autocomplete': ^6
'@codemirror/lint': ^6
@@ -11229,7 +11229,7 @@ snapshots:
'@codemirror/view': 6.41.0
'@modelcontextprotocol/sdk': 1.17.2
- '@marimo-team/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])':
+ '@marimo-team/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])':
dependencies:
'@codemirror/autocomplete': 6.20.1
'@codemirror/lint': 6.9.5