We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert curr.location is not None
1 parent 9977732 commit 0c2dfe3Copy full SHA for 0c2dfe3
src/databricks/labs/ucx/hive_metastore/locations.py
@@ -188,7 +188,8 @@ def _external_locations(self) -> Iterable[ExternalLocation]:
188
curr.parent and curr.parent.is_valid() and num_children == 0 and not curr.is_jdbc()
189
): # one table having the prefix
190
curr = curr.parent
191
- assert curr.location is not None
+ if not curr.location:
192
+ continue
193
external_location = ExternalLocation(curr.location, len(list(curr.all_tables())))
194
external_locations.append(external_location)
195
continue
0 commit comments