Skip to content

Commit 7123f0b

Browse files
committed
Fixed Loop
1 parent 024cadc commit 7123f0b

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
@@ -126,14 +126,14 @@ def get_seen_tables(self, *, scope: set[Table] | None = None) -> dict[str, str]:
126126
logger.warning(f"Table {table} is not an instance of TableInfo")
127127
continue
128128
if not table.full_name:
129-
logger.warning(f"The table {table.name} in {schema.name} has no full name")
129+
logger.warning(f"The table {table.name} in {table.schema_name} has no full name")
130130
continue
131131
if table_scope and table.full_name.lower() not in table_scope:
132132
continue
133133
if not table.properties or "upgraded_from" not in table.properties:
134134
continue
135135

136-
seen_tables[table.full_name.lower()] = table.properties["upgraded_from"].lower()
136+
seen_tables[table.full_name.lower()] = table.properties["upgraded_from"].lower()
137137
return seen_tables
138138

139139
def is_migrated(self, schema: str, table: str) -> bool:

0 commit comments

Comments
 (0)