| 40 | } |
| 41 | |
| 42 | static Block deserializeHeader(ReadBuffer & in) |
| 43 | { |
| 44 | UInt64 num_columns = 0; |
| 45 | readVarUInt(num_columns, in); |
| 46 | |
| 47 | ColumnsWithTypeAndName columns(num_columns); |
| 48 | |
| 49 | for (auto & column : columns) |
| 50 | { |
| 51 | readStringBinary(column.name, in); |
| 52 | column.type = decodeDataType(in); |
| 53 | } |
| 54 | |
| 55 | /// Fill columns in header. Some steps expect them to be not empty. |
| 56 | for (auto & column : columns) |
| 57 | column.column = column.type->createColumn(); |
| 58 | |
| 59 | return Block(std::move(columns)); |
| 60 | } |
| 61 | |
| 62 | /// Nothing is here for now |
| 63 | struct QueryPlan::SerializationFlags |