Remove unused parallel replicas coordinator in query info

This commit is contained in:
Igor Nikonov 2023-08-27 22:12:39 +00:00
parent a0ff7a97c9
commit 7368bf65b3
2 changed files with 1 additions and 13 deletions

View File

@ -318,20 +318,11 @@ void executeQueryWithParallelReplicas(
}
auto coordinator = std::make_shared<ParallelReplicasReadingCoordinator>(all_replicas_count);
/// This is a little bit weird, but we construct an "empty" coordinator without
/// any specified reading/coordination method (like Default, InOrder, InReverseOrder)
/// Because we will understand it later during QueryPlan optimization
/// So we place a reference to the coordinator to some common plane like QueryInfo
/// to then tell it about the reading method we chose.
query_info.coordinator = coordinator;
auto external_tables = new_context->getExternalTables();
auto read_from_remote = std::make_unique<ReadFromParallelRemoteReplicasStep>(
query_ast,
new_cluster,
coordinator,
std::move(coordinator),
stream_factory.header,
stream_factory.processed_stage,
main_table,

View File

@ -10,7 +10,6 @@
#include <Planner/PlannerContext.h>
#include <QueryPipeline/StreamLocalLimits.h>
#include <Storages/ProjectionsDescription.h>
#include <Storages/MergeTree/ParallelReplicasReadingCoordinator.h>
#include <memory>
@ -211,8 +210,6 @@ struct SelectQueryInfo
/// should we use custom key with the cluster
bool use_custom_key = false;
mutable ParallelReplicasReadingCoordinatorPtr coordinator;
TreeRewriterResultPtr syntax_analyzer_result;
/// This is an additional filer applied to current table.