MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / RemoteQueryExecutor

Method RemoteQueryExecutor

src/QueryPipeline/RemoteQueryExecutor.cpp:71–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71RemoteQueryExecutor::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
96RemoteQueryExecutor::RemoteQueryExecutor(
97 ConnectionPoolPtr pool,

Callers

nothing calls this directly

Calls 15

getManyCheckedMethod · 0.80
ExceptionClass · 0.50
incrementFunction · 0.50
getLoggerFunction · 0.50
getQualifiedNameMethod · 0.45
runMethod · 0.45
isNullMethod · 0.45
isConnectedMethod · 0.45
getServerRevisionMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected