Remove unused code and unnecessary check (#1918)

This commit is contained in:
kangkaisen
2019-09-30 18:35:30 +08:00
committed by ZHAO Chun
parent 8aa8e08f27
commit 4e8d728e75
8 changed files with 3 additions and 49 deletions

View File

@ -1064,8 +1064,7 @@ OLAPStatus Reader::_init_load_bf_columns(const ReaderParams& read_params) {
return res;
}
type = _tablet->tablet_schema().column(max_equal_index).type();
if ((type != OLAP_FIELD_TYPE_VARCHAR && type != OLAP_FIELD_TYPE_HLL)
|| max_equal_index + 1 > _tablet->num_short_key_columns()) {
if (type != OLAP_FIELD_TYPE_VARCHAR || max_equal_index + 1 > _tablet->num_short_key_columns()) {
_load_bf_columns.erase(max_equal_index);
}