Skip to content

Commit 3669faf

Browse files
Incorporate the review comments
1 parent 76908be commit 3669faf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/hive_metastore/test_mapping.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_unskip_on_table():
220220
mapping.unskip_table_or_view(schema_name="schema", table_name="table", load_table=lambda _schema, _table: table)
221221
ws.tables.get.assert_not_called()
222222
assert (
223-
f"ALTER TABLE `schema`.`table` UNSET TBLPROPERTIES IF EXISTS('{mapping.UCX_SKIP_PROPERTY}');"
223+
f"ALTER TABLE `catalog`.`schema`.`table` UNSET TBLPROPERTIES IF EXISTS('{mapping.UCX_SKIP_PROPERTY}');"
224224
in mock_backend.queries
225225
)
226226

@@ -231,12 +231,12 @@ def test_unskip_on_view():
231231
installation = MockInstallation()
232232
mapping = TableMapping(installation, ws, mock_backend)
233233
view = Table(
234-
catalog="catalog", database="schema", name="table", object_type="table", table_format="csv", view_text="stuff"
234+
catalog="catalog", database="schema", name="view", object_type="table", table_format="csv", view_text="stuff"
235235
)
236236
mapping.unskip_table_or_view(schema_name="schema", table_name="view", load_table=lambda _schema, _table: view)
237237
ws.tables.get.assert_not_called()
238238
assert (
239-
f"ALTER VIEW `schema`.`view` UNSET TBLPROPERTIES IF EXISTS('{mapping.UCX_SKIP_PROPERTY}');"
239+
f"ALTER VIEW `catalog`.`schema`.`view` UNSET TBLPROPERTIES IF EXISTS('{mapping.UCX_SKIP_PROPERTY}');"
240240
in mock_backend.queries
241241
)
242242

0 commit comments

Comments
 (0)