mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
@@ -60,6 +60,9 @@ class TablesDatabaseCommand(BaseCommand):
|
||||
catalog=self._catalog_name,
|
||||
schema=self._schema_name,
|
||||
datasource_names=sorted(
|
||||
# get_all_table_names_in_schema may return raw (unserialized) cached
|
||||
# results, so we wrap them as DatasourceName objects here instead of
|
||||
# directly in the method to ensure consistency.
|
||||
DatasourceName(*datasource_name)
|
||||
for datasource_name in self._model.get_all_table_names_in_schema(
|
||||
catalog=self._catalog_name,
|
||||
@@ -76,6 +79,9 @@ class TablesDatabaseCommand(BaseCommand):
|
||||
catalog=self._catalog_name,
|
||||
schema=self._schema_name,
|
||||
datasource_names=sorted(
|
||||
# get_all_view_names_in_schema may return raw (unserialized) cached
|
||||
# results, so we wrap them as DatasourceName objects here instead of
|
||||
# directly in the method to ensure consistency.
|
||||
DatasourceName(*datasource_name)
|
||||
for datasource_name in self._model.get_all_view_names_in_schema(
|
||||
catalog=self._catalog_name,
|
||||
|
||||
Reference in New Issue
Block a user