From 5acdeee4d255a67069f296f23a1eea5cb366387f Mon Sep 17 00:00:00 2001 From: ZHAO Chun Date: Mon, 9 Sep 2019 13:50:14 +0800 Subject: [PATCH] Assign schema_size from other Schema (#1768) --- be/src/olap/schema.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/be/src/olap/schema.cpp b/be/src/olap/schema.cpp index 5e02b864c6..bafccd5aab 100644 --- a/be/src/olap/schema.cpp +++ b/be/src/olap/schema.cpp @@ -33,9 +33,11 @@ Schema& Schema::operator=(const Schema& other) { } void Schema::copy_from(const Schema& other) { - _num_key_columns = other._num_key_columns; _col_ids = other._col_ids; _col_offsets = other._col_offsets; + _num_key_columns = other._num_key_columns; + _schema_size = other._schema_size; + _cols.resize(other._cols.size(), nullptr); for (auto cid : _col_ids) { _cols[cid] = other._cols[cid]->clone();