Assign schema_size from other Schema (#1768)

This commit is contained in:
ZHAO Chun
2019-09-09 13:50:14 +08:00
committed by GitHub
parent fd2937360c
commit 5acdeee4d2

View File

@ -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();