From 258367c1dd1a9dd3e8fe3bc185ccb2334616e6fe Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Wed, 6 Feb 2019 10:51:35 +0300 Subject: [PATCH] ASTs --- dbms/src/Storages/IndicesDescription.h | 4 ++-- dbms/src/Storages/MergeTree/MergeTreeData.cpp | 4 ++-- dbms/src/Storages/MergeTree/MergeTreeData.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dbms/src/Storages/IndicesDescription.h b/dbms/src/Storages/IndicesDescription.h index 1741886f852..9d7c7907ca1 100644 --- a/dbms/src/Storages/IndicesDescription.h +++ b/dbms/src/Storages/IndicesDescription.h @@ -6,11 +6,11 @@ namespace DB { -using IndicesAsts = std::vector>; +using IndicesASTs = std::vector>; struct IndicesDescription { - IndicesAsts indices; + IndicesASTs indices; IndicesDescription() = default; diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.cpp b/dbms/src/Storages/MergeTree/MergeTreeData.cpp index 3526ec334a8..6afc9960a36 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeData.cpp +++ b/dbms/src/Storages/MergeTree/MergeTreeData.cpp @@ -1148,7 +1148,7 @@ void MergeTreeData::checkAlter(const AlterCommands & commands) } void MergeTreeData::createConvertExpression(const DataPartPtr & part, const NamesAndTypesList & old_columns, const NamesAndTypesList & new_columns, - const IndicesAsts & old_indices, const IndicesAsts & new_indices, ExpressionActionsPtr & out_expression, + const IndicesASTs & old_indices, const IndicesASTs & new_indices, ExpressionActionsPtr & out_expression, NameToNameMap & out_rename_map, bool & out_force_update_metadata) const { out_expression = nullptr; @@ -1308,7 +1308,7 @@ void MergeTreeData::createConvertExpression(const DataPartPtr & part, const Name MergeTreeData::AlterDataPartTransactionPtr MergeTreeData::alterDataPart( const DataPartPtr & part, const NamesAndTypesList & new_columns, - const IndicesAsts & new_indices, + const IndicesASTs & new_indices, bool skip_sanity_checks) { ExpressionActionsPtr expression; diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.h b/dbms/src/Storages/MergeTree/MergeTreeData.h index 21e0d296933..66cbe6bf9dd 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeData.h +++ b/dbms/src/Storages/MergeTree/MergeTreeData.h @@ -490,7 +490,7 @@ public: AlterDataPartTransactionPtr alterDataPart( const DataPartPtr & part, const NamesAndTypesList & new_columns, - const IndicesAsts & new_indices, + const IndicesASTs & new_indices, bool skip_sanity_checks); /// Freezes all parts. @@ -746,7 +746,7 @@ private: /// Files to be deleted are mapped to an empty string in out_rename_map. /// If part == nullptr, just checks that all type conversions are possible. void createConvertExpression(const DataPartPtr & part, const NamesAndTypesList & old_columns, const NamesAndTypesList & new_columns, - const IndicesAsts & old_indices, const IndicesAsts & new_indices, + const IndicesASTs & old_indices, const IndicesASTs & new_indices, ExpressionActionsPtr & out_expression, NameToNameMap & out_rename_map, bool & out_force_update_metadata) const; /// Calculates column sizes in compressed form for the current state of data_parts. Call with data_parts mutex locked.