fix hash group by can not dump in non-vec mode

This commit is contained in:
18523270951@163.com
2023-07-18 05:24:19 +00:00
committed by ob-robot
parent 16567bebc7
commit 1568215ec4

View File

@ -978,7 +978,6 @@ int ObHashGroupByOp::load_data()
int64_t nth_dup_data = 0; int64_t nth_dup_data = 0;
bool last_group = false; bool last_group = false;
bool has_checked = false;
bool insert_group_ht = false; bool insert_group_ht = false;
do { do {
// one-dup-data // one-dup-data
@ -1015,7 +1014,6 @@ int ObHashGroupByOp::load_data()
} else { } else {
if (!is_dump_enabled if (!is_dump_enabled
|| local_group_rows_.size() < MIN_INMEM_GROUPS || local_group_rows_.size() < MIN_INMEM_GROUPS
|| has_checked
|| (!start_dump && !need_start_dump(input_rows, est_part_cnt, check_dump))) { || (!start_dump && !need_start_dump(input_rows, est_part_cnt, check_dump))) {
++agged_row_cnt_; ++agged_row_cnt_;
++agged_group_cnt_; ++agged_group_cnt_;
@ -1058,7 +1056,6 @@ int ObHashGroupByOp::load_data()
} }
} }
} }
has_checked = true;
} while (!last_group && OB_SUCC(ret)); } while (!last_group && OB_SUCC(ret));
} }