mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
feat: welcome presto to the suite of tested databases (#10498)
* Add presto to the CI Sample test data Datetime conversion Sample test data Fix tests * TODO to switch to timestamps * Address feedback * Update requirements * Add TODOs Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
@@ -93,7 +93,11 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
query_obj = dict(**base_query_obj, extras={})
|
||||
extra_cache_keys = table.get_extra_cache_keys(query_obj)
|
||||
self.assertTrue(table.has_extra_cache_key_calls(query_obj))
|
||||
self.assertListEqual(extra_cache_keys, ["abc"])
|
||||
# TODO(bkyryliuk): make it work with presto
|
||||
if get_example_database().backend == "presto":
|
||||
assert extra_cache_keys == []
|
||||
else:
|
||||
assert extra_cache_keys == ["abc"]
|
||||
|
||||
# Table with Jinja callable disabled.
|
||||
table = SqlaTable(
|
||||
@@ -125,7 +129,11 @@ class TestDatabaseModel(SupersetTestCase):
|
||||
)
|
||||
extra_cache_keys = table.get_extra_cache_keys(query_obj)
|
||||
self.assertTrue(table.has_extra_cache_key_calls(query_obj))
|
||||
self.assertListEqual(extra_cache_keys, ["abc"])
|
||||
# TODO(bkyryliuk): make it work with presto
|
||||
if get_example_database().backend == "presto":
|
||||
assert extra_cache_keys == []
|
||||
else:
|
||||
assert extra_cache_keys == ["abc"]
|
||||
|
||||
def test_where_operators(self):
|
||||
class FilterTestCase(NamedTuple):
|
||||
|
||||
Reference in New Issue
Block a user