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

Method deserialize

src/Processors/QueryPlan/Serialization.cpp:160–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160QueryPlanAndSets QueryPlan::deserialize(ReadBuffer & in, const ContextPtr & context)
161{
162 UInt64 version = 0;
163 readVarUInt(version, in);
164
165 if (version > DBMS_QUERY_PLAN_SERIALIZATION_VERSION)
166 throw Exception(ErrorCodes::NOT_IMPLEMENTED,
167 "Query plan serialization version {} is not supported. The last supported version is {}",
168 version, DBMS_QUERY_PLAN_SERIALIZATION_VERSION);
169
170 SerializationFlags flags;
171 return deserialize(in, context, flags);
172}
173
174QueryPlanAndSets QueryPlan::deserialize(ReadBuffer & in, const ContextPtr & context, const SerializationFlags & flags)
175{

Callers

nothing calls this directly

Calls 15

readStringBinaryFunction · 0.85
deserializeHeaderFunction · 0.85
assertCompatibleHeaderFunction · 0.85
getOutputHeaderMethod · 0.80
createStepMethod · 0.80
hasOutputHeaderMethod · 0.80
columnsMethod · 0.80
ExceptionClass · 0.50
formatFunction · 0.50
pushMethod · 0.45
emptyMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected