| 331 | } |
| 332 | |
| 333 | SerializationInfoPtr 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 | |
| 344 | SerializationPtr IDataType::getDefaultSerialization() const |
| 345 | { |
no outgoing calls
no test coverage detected