MCPcopy Create free account
hub / github.com/ByConity/ByConity / getPartitionValueType

Method getPartitionValueType

src/MergeTreeCommon/MergeTreeMetaBase.cpp:730–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730DataTypePtr MergeTreeMetaBase::getPartitionValueType() const
731{
732 DataTypePtr partition_value_type;
733 auto partition_types = getInMemoryMetadataPtr()->partition_key.sample_block.getDataTypes();
734 if (partition_types.empty())
735 partition_value_type = std::make_shared<DataTypeUInt8>();
736 else
737 partition_value_type = std::make_shared<DataTypeTuple>(std::move(partition_types));
738 return partition_value_type;
739}
740
741ASTs MergeTreeMetaBase::getPartVirtualExpr() const
742{

Callers 4

selectColumnNamesFunction · 0.80
ReadFromMergeTreeMethod · 0.80

Calls 2

getDataTypesMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected