From b0578d3faa6012f0b4a1407f8c4660a54e8233a5 Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 23 Mar 2020 16:35:18 +0300 Subject: [PATCH] Remove accident change --- dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp b/dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp index 26e1b230f08..68c3f8366a3 100644 --- a/dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp +++ b/dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp @@ -229,10 +229,7 @@ void IMergeTreeDataPart::setColumns(const NamesAndTypesList & new_columns) column_name_to_position.reserve(new_columns.size()); size_t pos = 0; for (const auto & column : columns) - { column_name_to_position.emplace(column.name, pos++); - } - total_columns_size = getTotalColumnsSize(); } IMergeTreeDataPart::~IMergeTreeDataPart() = default;