Skip to content

Commit 236106d

Browse files
committed
Addressed fmt issue
1 parent 7f6bd15 commit 236106d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ def _get_table_properties(self, table: Table):
295295
if table.is_table_in_mount:
296296
table_identifier = f"delta.`{table.location}`"
297297
else:
298-
table_identifier = f"hive_metastore.{escape_sql_identifier(table.database)}.{escape_sql_identifier(table.name)}"
298+
table_identifier = (
299+
f"hive_metastore.{escape_sql_identifier(table.database)}.{escape_sql_identifier(table.name)}"
300+
)
299301
try:
300302
return self._sql_backend.fetch(f"SHOW TBLPROPERTIES {table_identifier}")
301303
except DatabricksError as err:

tests/unit/recon/test_migration_recon.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ def test_migrate_recon_should_produce_proper_queries(
4242
(src_3.schema, src_3.table, tgt_3.catalog, tgt_3.schema, tgt_3.table, "2021-01-01T00:00:00Z"),
4343
("schema_none", "table_none", None, "schema_a", "table_a", "2021-01-01T00:00:00Z"),
4444
],
45-
f"SHOW TBLPROPERTIES hive_metastore.{src.schema}.{src.table} \\('upgraded_to'\\)": UPGRADED_TO[("value", "fake_dest"),],
46-
f"SHOW TBLPROPERTIES hive_metastore.{src_2.schema}.{src_2.table} \\('upgraded_to'\\)": UPGRADED_TO[("value", "fake_dest"),],
45+
f"SHOW TBLPROPERTIES hive_metastore.{src.schema}.{src.table} \\('upgraded_to'\\)": UPGRADED_TO[
46+
("value", "fake_dest"),
47+
],
48+
f"SHOW TBLPROPERTIES hive_metastore.{src_2.schema}.{src_2.table} \\('upgraded_to'\\)": UPGRADED_TO[
49+
("value", "fake_dest"),
50+
],
4751
"DESCRIBE TABLE": metadata_row_factory[
4852
("col1", "int"),
4953
("col2", "string"),

0 commit comments

Comments
 (0)