Skip to content

Commit

Permalink
Addressed Integration Tests Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FastLee committed Nov 4, 2024
1 parent acec522 commit 238cefd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/databricks/labs/ucx/contexts/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def static_table_ownership(self) -> StaticTableOwnership:
self.administrator_locator,
self.tables_crawler,
self.config.default_owner_group,
self.connect_config.username
self.connect_config.username,
)

@cached_property
Expand Down
3 changes: 3 additions & 0 deletions src/databricks/labs/ucx/hive_metastore/ownership.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def load(self) -> Iterable[Grant]:
for table in self._tables_crawler.snapshot():
owner = self._maybe_direct_owner(table)
table_name, view_name = self._names(table)
if not owner:
logger.warning(f"No owner found for {table.key}")
continue
yield Grant(
principal=owner,
action_type='OWN',
Expand Down

0 comments on commit 238cefd

Please sign in to comment.