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

Method sendQueryPlan

src/Client/Connection.cpp:1060–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058
1059
1060void Connection::sendQueryPlan(const QueryPlan & query_plan)
1061{
1062 writeVarUInt(Protocol::Client::QueryPlan, *out);
1063
1064 if (query_plan.isSerialized())
1065 {
1066 // Use cached serialization
1067 auto serialized_data = query_plan.getSerializedData();
1068 out->write(serialized_data.data(), serialized_data.size());
1069 }
1070 else
1071 {
1072 // Fallback: serialize on-the-fly
1073 query_plan.serialize(*out, server_query_plan_serialization_version);
1074 }
1075}
1076
1077void Connection::sendCancel()
1078{

Callers 1

sendQueryUnlockedMethod · 0.45

Calls 7

writeVarUIntFunction · 0.85
isSerializedMethod · 0.80
getSerializedDataMethod · 0.80
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected