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

Method getSerializationInfo

src/DataTypes/IDataType.cpp:333–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333SerializationInfoPtr IDataType::getSerializationInfo(const IColumn & column) const
334{
335 if (const auto * column_const = checkAndGetColumn<ColumnConst>(&column))
336 return getSerializationInfo(column_const->getDataColumn());
337
338 /// Enable all supported serialization features when deriving info from an existing column. Since the column
339 /// reflects the actual in-memory state, the serialization info must accept any variant that the column may contain.
340 return std::make_shared<SerializationInfo>(
341 ISerialization::getKindStack(column), SerializationInfoSettings::enableAllSupportedSerializations());
342}
343
344SerializationPtr IDataType::getDefaultSerialization() const
345{

Callers 5

addMethod · 0.45
addBatchSinglePlaceMethod · 0.45
collectOffsetsColumnsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected