From c7c14cc6ad9723b04dbc95bd1c096f91a711c967 Mon Sep 17 00:00:00 2001 From: hexiaoting Date: Tue, 10 Nov 2020 11:24:39 +0800 Subject: [PATCH] fix bug --- src/Columns/ColumnMap.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Columns/ColumnMap.cpp b/src/Columns/ColumnMap.cpp index 77949f3da13..124dd5dd36c 100644 --- a/src/Columns/ColumnMap.cpp +++ b/src/Columns/ColumnMap.cpp @@ -32,8 +32,7 @@ std::string ColumnMap::getName() const ColumnMap::ColumnMap(MutableColumns && mutable_columns) { - assert(2 == mutable_columns.size()); - columns.reserve(2); + columns.reserve(mutable_columns.size()); for (auto & column : mutable_columns) { assert(column->getDataType() == TypeIndex::Array);