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

Function deserializeHeader

src/Processors/QueryPlan/Serialization.cpp:42–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static 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
63struct QueryPlan::SerializationFlags

Callers 4

advanceToNextPartMethod · 0.85
loadHeaderMethod · 0.85
TESTFunction · 0.85
deserializeMethod · 0.85

Calls 4

readStringBinaryFunction · 0.85
decodeDataTypeFunction · 0.85
BlockClass · 0.70
createColumnMethod · 0.45

Tested by 1

TESTFunction · 0.68