Skip to content

Commit 5cfc7d7

Browse files
committed
cosmetics
1 parent fc09941 commit 5cfc7d7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Storages/StorageDistributed.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ void StorageDistributed::read(
12111211

12121212
// Create UnionStep to combine all plans
12131213
auto union_step = std::make_unique<UnionStep>(std::move(headers), 0);
1214+
union_step->setStepDescription("TieredDistributedMerge");
12141215

12151216
union_plan.unitePlans(std::move(union_step), std::move(plan_ptrs));
12161217

@@ -2197,6 +2198,12 @@ void StorageDistributed::delayInsertOrThrowIfNeeded() const
21972198
}
21982199
}
21992200

2201+
void StorageDistributed::setAdditionalTableFunctions(std::vector<TableFunctionEntry> additional_table_functions_)
2202+
{
2203+
additional_table_functions = std::move(additional_table_functions_);
2204+
log = getLogger("TieredDistributedMerge (" + getStorageID().table_name + ")");
2205+
}
2206+
22002207
void registerStorageDistributed(StorageFactory & factory)
22012208
{
22022209
factory.registerStorage("Distributed", [](const StorageFactory::Arguments & args)

src/Storages/StorageDistributed.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,7 @@ class StorageDistributed final : public IStorage, WithContext
175175
void setAdditionalFilter(ASTPtr filter) { additional_filter = std::move(filter); }
176176

177177
/// Set additional table functions for TieredDistributedMerge engine
178-
void setAdditionalTableFunctions(std::vector<TableFunctionEntry> additional_table_functions_)
179-
{
180-
additional_table_functions = std::move(additional_table_functions_);
181-
}
178+
void setAdditionalTableFunctions(std::vector<TableFunctionEntry> additional_table_functions_);
182179

183180
/// Getter methods for ClusterProxy::executeQuery
184181
StorageID getRemoteStorageID() const { return remote_storage; }

0 commit comments

Comments
 (0)