From 4e33587043f9cc7b637207771c8a49da7c7c71be Mon Sep 17 00:00:00 2001 From: alesapin Date: Tue, 2 Mar 2021 13:57:09 +0300 Subject: [PATCH] Comments --- src/Storages/MergeTree/MergeTreeData.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Storages/MergeTree/MergeTreeData.h b/src/Storages/MergeTree/MergeTreeData.h index 6f0ca34e753..e629536a106 100644 --- a/src/Storages/MergeTree/MergeTreeData.h +++ b/src/Storages/MergeTree/MergeTreeData.h @@ -692,11 +692,15 @@ public: bool is_custom_partitioned = false; + /// Used only for old syntax tables. Never changes after init. Int64 minmax_idx_date_column_pos = -1; /// In a common case minmax index includes a date column. Int64 minmax_idx_time_column_pos = -1; /// In other cases, minmax index often includes a dateTime column. + /// Get partition key expression on required columns ExpressionActionsPtr getMinMaxExpr(const KeyDescription & partition_key) const; + /// Get column names required for partition key Names getMinMaxColumnsNames(const KeyDescription & partition_key) const; + /// Get column types required for partition key DataTypes getMinMaxColumnsTypes(const KeyDescription & partition_key) const; ExpressionActionsPtr getPrimaryKeyAndSkipIndicesExpression(const StorageMetadataPtr & metadata_snapshot) const;