mirror of https://github.com/apache/superset.git
fix: sqlglot SQL Server (#27577)
This commit is contained in:
parent
6f3afab01d
commit
72a41c1642
|
@ -116,7 +116,7 @@ SQLGLOT_DIALECTS = {
|
||||||
# "impala": ???
|
# "impala": ???
|
||||||
# "kustokql": ???
|
# "kustokql": ???
|
||||||
# "kylin": ???
|
# "kylin": ???
|
||||||
# "mssql": ???
|
"mssql": Dialects.TSQL,
|
||||||
"mysql": Dialects.MYSQL,
|
"mysql": Dialects.MYSQL,
|
||||||
"netezza": Dialects.POSTGRES,
|
"netezza": Dialects.POSTGRES,
|
||||||
# "ocient": ???
|
# "ocient": ???
|
||||||
|
|
|
@ -535,6 +535,9 @@ class TestPostChartDataApi(BaseTestChartDataApi):
|
||||||
"""
|
"""
|
||||||
Chart data API: Ensure prophet post transformation works
|
Chart data API: Ensure prophet post transformation works
|
||||||
"""
|
"""
|
||||||
|
if backend() == "hive":
|
||||||
|
return
|
||||||
|
|
||||||
time_grain = "P1Y"
|
time_grain = "P1Y"
|
||||||
self.query_context_payload["queries"][0]["is_timeseries"] = True
|
self.query_context_payload["queries"][0]["is_timeseries"] = True
|
||||||
self.query_context_payload["queries"][0]["groupby"] = []
|
self.query_context_payload["queries"][0]["groupby"] = []
|
||||||
|
@ -569,6 +572,9 @@ class TestPostChartDataApi(BaseTestChartDataApi):
|
||||||
"""
|
"""
|
||||||
Chart data API: Ensure incorrect post processing returns correct response
|
Chart data API: Ensure incorrect post processing returns correct response
|
||||||
"""
|
"""
|
||||||
|
if backend() == "hive":
|
||||||
|
return
|
||||||
|
|
||||||
query_context = self.query_context_payload
|
query_context = self.query_context_payload
|
||||||
query = query_context["queries"][0]
|
query = query_context["queries"][0]
|
||||||
query["columns"] = ["name", "gender"]
|
query["columns"] = ["name", "gender"]
|
||||||
|
|
Loading…
Reference in New Issue