This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 50c42d12f6e branch-3.0: Revert "[Improvement](sort) do not sort 
partitial when spill disabled(#40528)" #41652 (#51289)
50c42d12f6e is described below

commit 50c42d12f6e83fd9b0c722ba544be8f9d4c42931
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue May 27 21:28:50 2025 +0800

    branch-3.0: Revert "[Improvement](sort) do not sort partitial when spill 
disabled(#40528)" #41652 (#51289)
    
    Cherry-picked from #41652
    
    Co-authored-by: HappenLee <[email protected]>
---
 be/src/vec/common/sort/sorter.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/vec/common/sort/sorter.h b/be/src/vec/common/sort/sorter.h
index a290de65bb6..aa7d88dfbc2 100644
--- a/be/src/vec/common/sort/sorter.h
+++ b/be/src/vec/common/sort/sorter.h
@@ -177,8 +177,8 @@ public:
 
 private:
     bool _reach_limit() {
-        return _enable_spill && (_state->unsorted_block_->rows() > 
buffered_block_size_ ||
-                                 _state->unsorted_block_->bytes() > 
buffered_block_bytes_);
+        return _state->unsorted_block_->rows() > buffered_block_size_ ||
+               _state->unsorted_block_->bytes() > buffered_block_bytes_;
     }
 
     Status _do_sort();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to