Skip to content

Commit 48d2828

Browse files
committed
Added quote to update statement
1 parent 365493c commit 48d2828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _update_table_status(self, src_table: Table, inventory_table: str):
440440
self._sql_backend.execute(update_sql)
441441

442442
def _update_table_location(self, src_table: Table, inventory_table: str, new_location: str):
443-
update_sql = f"UPDATE {escape_sql_identifier(inventory_table)} SET location = {new_location} WHERE catalog='hive_metastore' AND database='{src_table.database}' AND name='{src_table.name}';"
443+
update_sql = f"UPDATE {escape_sql_identifier(inventory_table)} SET location = '{new_location}' WHERE catalog='hive_metastore' AND database='{src_table.database}' AND name='{src_table.name}';"
444444
self._sql_backend.execute(update_sql)
445445

446446
def _migrate_managed_as_external_table(self, src_table: Table, rule: Rule):

0 commit comments

Comments
 (0)