Skip to content

Commit 4252fba

Browse files
committed
Skip Delta Sharing Catalog
1 parent 5c1e4c4 commit 4252fba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/databricks/labs/ucx/hive_metastore/table_migration_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from databricks.labs.lsql.backends import SqlBackend
1010
from databricks.sdk import WorkspaceClient
1111
from databricks.sdk.errors import DatabricksError, NotFound
12-
from databricks.sdk.service.catalog import CatalogInfo, CatalogInfoSecurableKind, SchemaInfo, TableInfo
12+
from databricks.sdk.service.catalog import CatalogInfo, CatalogInfoSecurableKind, SchemaInfo, TableInfo, CatalogType
1313

1414
from databricks.labs.ucx.framework.crawlers import CrawlerBase
1515
from databricks.labs.ucx.framework.utils import escape_sql_identifier
@@ -183,7 +183,7 @@ def _iter_catalogs(self) -> Iterable[CatalogInfo]:
183183

184184
def _iter_schemas(self) -> Iterable[SchemaInfo]:
185185
for catalog in self._iter_catalogs():
186-
if catalog.name is None:
186+
if catalog.name is None or catalog.catalog_type in (CatalogType.DELTASHARING_CATALOG, CatalogType.SYSTEM_CATALOG):
187187
continue
188188
try:
189189
yield from self._ws.schemas.list(catalog_name=catalog.name)

0 commit comments

Comments
 (0)