| 728 | } |
| 729 | |
| 730 | DataTypePtr 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 | |
| 741 | ASTs MergeTreeMetaBase::getPartVirtualExpr() const |
| 742 | { |
no test coverage detected