mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: Refactor ExploreMixin to power both Datasets (SqlaTable) and Query models (#22853)
This commit is contained in:
@@ -1242,8 +1242,8 @@ def test_chart_cache_timeout_chart_not_found(
|
||||
[
|
||||
(200, {"where": "1 = 1"}),
|
||||
(200, {"having": "count(*) > 0"}),
|
||||
(400, {"where": "col1 in (select distinct col1 from physical_dataset)"}),
|
||||
(400, {"having": "count(*) > (select count(*) from physical_dataset)"}),
|
||||
(403, {"where": "col1 in (select distinct col1 from physical_dataset)"}),
|
||||
(403, {"having": "count(*) > (select count(*) from physical_dataset)"}),
|
||||
],
|
||||
)
|
||||
@with_feature_flags(ALLOW_ADHOC_SUBQUERY=False)
|
||||
|
||||
@@ -493,8 +493,16 @@ class TestSqlLab(SupersetTestCase):
|
||||
"datasourceName": f"test_viz_flow_table_{random()}",
|
||||
"schema": "superset",
|
||||
"columns": [
|
||||
{"is_dttm": False, "type": "STRING", "name": f"viz_type_{random()}"},
|
||||
{"is_dttm": False, "type": "OBJECT", "name": f"ccount_{random()}"},
|
||||
{
|
||||
"is_dttm": False,
|
||||
"type": "STRING",
|
||||
"column_name": f"viz_type_{random()}",
|
||||
},
|
||||
{
|
||||
"is_dttm": False,
|
||||
"type": "OBJECT",
|
||||
"column_name": f"ccount_{random()}",
|
||||
},
|
||||
],
|
||||
"sql": """\
|
||||
SELECT *
|
||||
@@ -523,8 +531,16 @@ class TestSqlLab(SupersetTestCase):
|
||||
"chartType": "dist_bar",
|
||||
"schema": "superset",
|
||||
"columns": [
|
||||
{"is_dttm": False, "type": "STRING", "name": f"viz_type_{random()}"},
|
||||
{"is_dttm": False, "type": "OBJECT", "name": f"ccount_{random()}"},
|
||||
{
|
||||
"is_dttm": False,
|
||||
"type": "STRING",
|
||||
"column_name": f"viz_type_{random()}",
|
||||
},
|
||||
{
|
||||
"is_dttm": False,
|
||||
"type": "OBJECT",
|
||||
"column_name": f"ccount_{random()}",
|
||||
},
|
||||
],
|
||||
"sql": """\
|
||||
SELECT *
|
||||
|
||||
Reference in New Issue
Block a user