You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2025/06/05 15:44:21 UTC
(superset) 01/01: chore: update sqlglot dialect map
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch update-dialects
in repository https://gitbox.apache.org/repos/asf/superset.git
commit fb0c430486690ca91e0f4f1bb0219ed196402cf6
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Thu Jun 5 11:44:09 2025 -0400
chore: update sqlglot dialect map
---
superset/sql/parse.py | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/superset/sql/parse.py b/superset/sql/parse.py
index 7487f3250d..27af23098c 100644
--- a/superset/sql/parse.py
+++ b/superset/sql/parse.py
@@ -58,6 +58,7 @@ SQLGLOT_DIALECTS = {
# "databend": ???
"databricks": Dialects.DATABRICKS,
# "db2": ???
+ # "denodo": ???
# "dremio": ???
"drill": Dialects.DRILL,
"druid": Dialects.DRUID,
@@ -72,14 +73,18 @@ SQLGLOT_DIALECTS = {
"hive": Dialects.HIVE,
# "ibmi": ???
# "impala": ???
- # "kustokql": ???
+ # "kustosql": ???
# "kylin": ???
+ "mariadb: ": Dialects.MYSQL,
+ "motherduck": Dialects.DUCKDB,
"mssql": Dialects.TSQL,
"mysql": Dialects.MYSQL,
"netezza": Dialects.POSTGRES,
+ "oceanbase": Dialects.MYSQL,
# "ocient": ???
# "odelasticsearch": ???
"oracle": Dialects.ORACLE,
+ "parseable": Dialects.POSTGRES,
# "pinot": ???
"postgresql": Dialects.POSTGRES,
"presto": Dialects.PRESTO,
@@ -95,6 +100,7 @@ SQLGLOT_DIALECTS = {
"sqlite": Dialects.SQLITE,
"starrocks": Dialects.STARROCKS,
"superset": Dialects.SQLITE,
+ # "taosws": ???
"teradatasql": Dialects.TERADATA,
"trino": Dialects.TRINO,
"vertica": Dialects.POSTGRES,
@@ -1429,3 +1435,6 @@ def sanitize_clause(clause: str, engine: str) -> str:
return SQLStatement(clause, engine).format()
except SupersetParseError as ex:
raise QueryClauseValidationException(f"Invalid SQL clause: {clause}") from ex
+
+
+print("BETO")