豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 72a41c1

Browse files
fix: sqlglot SQL Server (#27577)
1 parent 6f3afab commit 72a41c1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

superset/sql_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# "impala": ???
117117
# "kustokql": ???
118118
# "kylin": ???
119-
# "mssql": ???
119+
"mssql": Dialects.TSQL,
120120
"mysql": Dialects.MYSQL,
121121
"netezza": Dialects.POSTGRES,
122122
# "ocient": ???

tests/integration_tests/charts/data/api_tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,9 @@ def test_chart_data_prophet(self):
535535
"""
536536
Chart data API: Ensure prophet post transformation works
537537
"""
538+
if backend() == "hive":
539+
return
540+
538541
time_grain = "P1Y"
539542
self.query_context_payload["queries"][0]["is_timeseries"] = True
540543
self.query_context_payload["queries"][0]["groupby"] = []
@@ -569,6 +572,9 @@ def test_chart_data_invalid_post_processing(self):
569572
"""
570573
Chart data API: Ensure incorrect post processing returns correct response
571574
"""
575+
if backend() == "hive":
576+
return
577+
572578
query_context = self.query_context_payload
573579
query = query_context["queries"][0]
574580
query["columns"] = ["name", "gender"]

0 commit comments

Comments
 (0)