Skip to content

Commit 49e9a98

Browse files
committed
fix a few tests
1 parent ed9f636 commit 49e9a98

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

src/Storages/MergeTree/MergeTreeData.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5906,9 +5906,11 @@ void MergeTreeData::exportPartToTable(const PartitionCommand & command, ContextP
59065906
"Exporting merge tree part is experimental. Set `allow_experimental_export_merge_tree_part` to enable it");
59075907
}
59085908

5909-
auto part_name = command.partition->as<ASTLiteral &>().value.safeGet<String>();
5909+
const auto part_name = command.partition->as<ASTLiteral &>().value.safeGet<String>();
59105910

5911-
exportPartToTable(part_name, StorageID{command.to_database, command.to_table}, query_context);
5911+
const auto database_name = query_context->resolveDatabase(command.to_database);
5912+
5913+
exportPartToTable(part_name, StorageID{database_name, command.to_table}, query_context);
59125914
}
59135915

59145916
void MergeTreeData::exportPartToTable(

tests/queries/0_stateless/01271_show_privileges.reference

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ ALTER MATERIALIZE TTL ['MATERIALIZE TTL'] TABLE ALTER TABLE
4444
ALTER SETTINGS ['ALTER SETTING','ALTER MODIFY SETTING','MODIFY SETTING','RESET SETTING'] TABLE ALTER TABLE
4545
ALTER MOVE PARTITION ['ALTER MOVE PART','MOVE PARTITION','MOVE PART'] TABLE ALTER TABLE
4646
ALTER EXPORT PART ['ALTER EXPORT PART','EXPORT PART'] TABLE ALTER TABLE
47+
ALTER EXPORT PARTITION ['ALTER EXPORT PARTITION','EXPORT PARTITION'] TABLE ALTER TABLE
4748
ALTER FETCH PARTITION ['ALTER FETCH PART','FETCH PARTITION'] TABLE ALTER TABLE
4849
ALTER FREEZE PARTITION ['FREEZE PARTITION','UNFREEZE'] TABLE ALTER TABLE
4950
ALTER UNLOCK SNAPSHOT ['UNLOCK SNAPSHOT'] TABLE ALTER TABLE

tests/queries/0_stateless/02221_system_zookeeper_unrestricted.reference

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ columns
1818
columns
1919
creator_info
2020
creator_info
21+
exports
22+
exports
2123
failed_parts
2224
failed_parts
2325
flags

tests/queries/0_stateless/02221_system_zookeeper_unrestricted_like.reference

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ blocks
5151
columns
5252
columns
5353
creator_info
54+
exports
5455
failed_parts
5556
flags
5657
host

0 commit comments

Comments
 (0)