| 69 | } |
| 70 | |
| 71 | RemoteQueryExecutor::RemoteQueryExecutor( |
| 72 | const String & query_, |
| 73 | SharedHeader header_, |
| 74 | ContextPtr context_, |
| 75 | const Scalars & scalars_, |
| 76 | const Tables & external_tables_, |
| 77 | QueryProcessingStage::Enum stage_, |
| 78 | std::shared_ptr<const QueryPlan> query_plan_, |
| 79 | std::optional<Extension> extension_, |
| 80 | GetPriorityForLoadBalancing::Func priority_func_) |
| 81 | : header(header_) |
| 82 | , query(query_) |
| 83 | , query_plan(std::move(query_plan_)) |
| 84 | , context(context_) |
| 85 | , scalars(scalars_) |
| 86 | , external_tables(external_tables_) |
| 87 | , stage(stage_) |
| 88 | , extension(extension_) |
| 89 | , priority_func(priority_func_) |
| 90 | , read_packet_type_separately(context->canUseParallelReplicasOnInitiator() && !context->getSettingsRef()[Setting::use_hedged_requests]) |
| 91 | { |
| 92 | if (stage == QueryProcessingStage::QueryPlan && !query_plan) |
| 93 | throw Exception(ErrorCodes::LOGICAL_ERROR, "Query plan is not passed for QueryPlan processing stage"); |
| 94 | } |
| 95 | |
| 96 | RemoteQueryExecutor::RemoteQueryExecutor( |
| 97 | ConnectionPoolPtr pool, |
nothing calls this directly
no test coverage detected