@@ -330,18 +330,18 @@ def test_skip_tables_marked_for_skipping_or_upgraded():
330
330
["test_schema2" ],
331
331
["test_schema3" ],
332
332
],
333
- "SHOW TBLPROPERTIES `test_schema1`.`test_table1`" : [
333
+ "SHOW TBLPROPERTIES hive_metastore. `test_schema1`.`test_table1`" : [
334
334
{"key" : "upgraded_to" , "value" : "fake_dest" },
335
335
],
336
- "SHOW TBLPROPERTIES `test_schema1`.`test_view1`" : [
336
+ "SHOW TBLPROPERTIES hive_metastore. `test_schema1`.`test_view1`" : [
337
337
{"key" : "databricks.labs.ucx.skip" , "value" : "true" },
338
338
],
339
- "SHOW TBLPROPERTIES `test_schema1`.`test_table2`" : [
339
+ "SHOW TBLPROPERTIES hive_metastore. `test_schema1`.`test_table2`" : [
340
340
{"key" : "upgraded_to" , "value" : "fake_dest" },
341
341
],
342
- "DESCRIBE SCHEMA EXTENDED `test_schema1`" : [],
343
- "DESCRIBE SCHEMA EXTENDED `test_schema2`" : [],
344
- "DESCRIBE SCHEMA EXTENDED `test_schema3`" : [
342
+ "DESCRIBE SCHEMA EXTENDED hive_metastore. `test_schema1`" : [],
343
+ "DESCRIBE SCHEMA EXTENDED hive_metastore. `test_schema2`" : [],
344
+ "DESCRIBE SCHEMA EXTENDED hive_metastore. `test_schema3`" : [
345
345
{
346
346
"database_description_item" : "Properties" ,
347
347
"database_description_value" : "((databricks.labs.ucx.skip,true))" ,
@@ -418,7 +418,7 @@ def test_skip_tables_marked_for_skipping_or_upgraded():
418
418
def test_table_with_no_target_reverted ():
419
419
errors = {}
420
420
rows = {
421
- "SHOW TBLPROPERTIES `schema1`.`table1`" : [
421
+ "SHOW TBLPROPERTIES hive_metastore. `schema1`.`table1`" : [
422
422
{"key" : "upgraded_to" , "value" : "non.existing.table" },
423
423
],
424
424
}
@@ -490,7 +490,7 @@ def test_skipping_rules_existing_targets():
490
490
]
491
491
table_mapping .get_tables_to_migrate (tables_crawler )
492
492
493
- assert ["DESCRIBE SCHEMA EXTENDED `schema1`" ] == backend .queries
493
+ assert ["DESCRIBE SCHEMA EXTENDED hive_metastore. `schema1`" ] == backend .queries
494
494
495
495
496
496
def test_mismatch_from_table_raises_exception ():
@@ -530,7 +530,7 @@ def test_mismatch_from_table_raises_exception():
530
530
assert len (e .errs ) == 1
531
531
raise e .errs [0 ]
532
532
533
- assert ["DESCRIBE SCHEMA EXTENDED `schema1`" ] == backend .queries
533
+ assert ["DESCRIBE SCHEMA EXTENDED hive_metastore. `schema1`" ] == backend .queries
534
534
535
535
536
536
def test_table_not_in_crawled_tables ():
@@ -548,7 +548,7 @@ def test_table_not_in_crawled_tables():
548
548
tables_crawler .snapshot .return_value = []
549
549
table_mapping .get_tables_to_migrate (tables_crawler )
550
550
551
- assert ["DESCRIBE SCHEMA EXTENDED `schema1`" ] == backend .queries
551
+ assert ["DESCRIBE SCHEMA EXTENDED hive_metastore. `schema1`" ] == backend .queries
552
552
553
553
554
554
def test_skipping_rules_database_skipped ():
@@ -560,7 +560,7 @@ def test_skipping_rules_database_skipped():
560
560
)
561
561
errors = {}
562
562
rows = {
563
- "DESCRIBE SCHEMA EXTENDED `schema2`" : [
563
+ "DESCRIBE SCHEMA EXTENDED hive_metastore. `schema2`" : [
564
564
{
565
565
"database_description_item" : "Properties" ,
566
566
"database_description_value" : "((databricks.labs.ucx.skip,true))" ,
@@ -594,8 +594,8 @@ def test_skipping_rules_database_skipped():
594
594
]
595
595
table_mapping .get_tables_to_migrate (tables_crawler )
596
596
597
- assert "SHOW TBLPROPERTIES `schema1`.`table1`" in backend .queries
598
- assert "SHOW TBLPROPERTIES `schema2`.`table2`" not in backend .queries
597
+ assert "SHOW TBLPROPERTIES hive_metastore. `schema1`.`table1`" in backend .queries
598
+ assert "SHOW TBLPROPERTIES hive_metastore. `schema2`.`table2`" not in backend .queries
599
599
600
600
601
601
def test_skip_missing_table_in_snapshot ():
@@ -754,7 +754,7 @@ def test_tables_in_mounts():
754
754
tables_crawler .snapshot .return_value = []
755
755
table_mapping .get_tables_to_migrate (tables_crawler )
756
756
757
- assert ["DESCRIBE SCHEMA EXTENDED `schema1`" ] == backend .queries
757
+ assert ["DESCRIBE SCHEMA EXTENDED hive_metastore. `schema1`" ] == backend .queries
758
758
759
759
760
760
def test_mapping_table_in_mount ():
@@ -913,7 +913,7 @@ def test_mapping_broken_table(caplog):
913
913
def test_table_with_no_target_reverted_failed (caplog ):
914
914
errors = {"ALTER TABLE" : "ALTER_TABLE_FAILED" }
915
915
rows = {
916
- "SHOW TBLPROPERTIES `schema1`.`table1`" : [
916
+ "SHOW TBLPROPERTIES hive_metastore. `schema1`.`table1`" : [
917
917
{"key" : "upgraded_to" , "value" : "non.existing.table" },
918
918
],
919
919
}
0 commit comments