This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new e4f6e55e89 fix: add catalog to cache key when getting tables/views
(#31910)
e4f6e55e89 is described below
commit e4f6e55e8989eadaa0d3911857ccd9e6d5436cfd
Author: Beto Dealmeida <[email protected]>
AuthorDate: Fri Jan 17 17:08:09 2025 -0500
fix: add catalog to cache key when getting tables/views (#31910)
---
superset/models/core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/models/core.py b/superset/models/core.py
index f71e5c5b63..39775291f1 100755
--- a/superset/models/core.py
+++ b/superset/models/core.py
@@ -791,7 +791,7 @@ class Database(Model, AuditMixinNullable,
ImportExportMixin): # pylint: disable
return self.sqlalchemy_uri
@cache_util.memoized_func(
- key="db:{self.id}:schema:{schema}:table_list",
+ key="db:{self.id}:catalog:{catalog}:schema:{schema}:table_list",
cache=cache_manager.cache,
)
def get_all_table_names_in_schema(
@@ -825,7 +825,7 @@ class Database(Model, AuditMixinNullable,
ImportExportMixin): # pylint: disable
raise self.db_engine_spec.get_dbapi_mapped_exception(ex) from ex
@cache_util.memoized_func(
- key="db:{self.id}:schema:{schema}:view_list",
+ key="db:{self.id}:catalog:{catalog}:schema:{schema}:view_list",
cache=cache_manager.cache,
)
def get_all_view_names_in_schema(