| 158 | } |
| 159 | |
| 160 | QueryPlanAndSets 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 | |
| 174 | QueryPlanAndSets QueryPlan::deserialize(ReadBuffer & in, const ContextPtr & context, const SerializationFlags & flags) |
| 175 | { |
nothing calls this directly
no test coverage detected