Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BiteTheDDDDt committed Dec 26, 2024
1 parent 6b39a0c commit e309d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/vec/common/sort/sorter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ Status MergeSorterState::_merge_sort_read_impl(int batch_size, doris::vectorized
merged_rows += current_rows;
}

if (!current->impl->is_last(current_rows)) {
priority_queue_.next(current_rows);
if (!current->impl->is_last(current_rows + step)) {
priority_queue_.next(current_rows + step);
} else {
priority_queue_.remove_top();
}
Expand Down

0 comments on commit e309d28

Please sign in to comment.