mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
@@ -289,23 +289,3 @@ class SqlaTableModelTestCase(SupersetTestCase):
|
||||
tbl.get_query_str(query_obj)
|
||||
|
||||
self.assertTrue("Metric 'invalid' does not exist", context.exception)
|
||||
|
||||
def test_query_with_non_existent_filter_columns(self):
|
||||
tbl = self.get_table_by_name("birth_names")
|
||||
|
||||
query_obj = dict(
|
||||
groupby=[],
|
||||
metrics=["count"],
|
||||
filter=[{"col": "invalid", "op": "==", "val": "male"}],
|
||||
is_timeseries=False,
|
||||
columns=["name"],
|
||||
granularity=None,
|
||||
from_dttm=None,
|
||||
to_dttm=None,
|
||||
extras={},
|
||||
)
|
||||
|
||||
with self.assertRaises(Exception) as context:
|
||||
tbl.get_query_str(query_obj)
|
||||
|
||||
self.assertTrue("Column 'invalid' does not exist", context.exception)
|
||||
|
||||
Reference in New Issue
Block a user