Skip to content

Commit

Permalink
fix: sqlglot SQL Server (apache#27577)
Browse files Browse the repository at this point in the history
(cherry picked from commit 72a41c1)
  • Loading branch information
betodealmeida authored and sadpandajoe committed Mar 26, 2024
1 parent 54d4f04 commit 51f5fb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/sql_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
# "impala": ???
# "kustokql": ???
# "kylin": ???
# "mssql": ???
"mssql": Dialects.TSQL,
"mysql": Dialects.MYSQL,
"netezza": Dialects.POSTGRES,
# "ocient": ???
Expand Down
6 changes: 6 additions & 0 deletions tests/integration_tests/charts/data/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ def test_chart_data_prophet(self):
"""
Chart data API: Ensure prophet post transformation works
"""
if backend() == "hive":
return

time_grain = "P1Y"
self.query_context_payload["queries"][0]["is_timeseries"] = True
self.query_context_payload["queries"][0]["groupby"] = []
Expand Down Expand Up @@ -569,6 +572,9 @@ def test_chart_data_invalid_post_processing(self):
"""
Chart data API: Ensure incorrect post processing returns correct response
"""
if backend() == "hive":
return

query_context = self.query_context_payload
query = query_context["queries"][0]
query["columns"] = ["name", "gender"]
Expand Down

0 comments on commit 51f5fb0

Please sign in to comment.