fix: Consider default catalog when getting tables and view lists (#33916)

This commit is contained in:
Vitor Avila
2025-06-26 13:55:10 -03:00
committed by GitHub
parent 8b5afc6f29
commit a56d7252c2
4 changed files with 44 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class TablesDatabaseCommand(BaseCommand):
def run(self) -> dict[str, Any]:
self.validate()
self._catalog_name = self._catalog_name or self._model.get_default_catalog()
try:
tables = security_manager.get_datasources_accessible_by_user(
database=self._model,