[legacy bugfix] fix span column encoder down casting to incorrect type

This commit is contained in:
saltonz 2023-04-14 08:39:33 +00:00 committed by ob-robot
parent 2574c858ab
commit 7b4c284f78

View File

@ -640,7 +640,7 @@ int ObMicroBlockEncoder::build_block(char *&buf, int64_t &size)
ObIColumnEncoder *e = encoders_.at(idx);
pe.type_ = static_cast<ObColumnHeader::Type>(e->get_column_header().type_);
if (ObColumnHeader::is_inter_column_encoder(pe.type_)) {
pe.ref_col_idx_ = static_cast<ObColumnEqualEncoder *>(e)->get_ref_col_idx();
pe.ref_col_idx_ = static_cast<ObSpanColumnEncoder *>(e)->get_ref_col_idx();
} else {
pe.ref_col_idx_ = 0;
}