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

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

commit 1e53a2a81d19e6a1c2b67b33c6b300e34c789ba8
Author: airborne12 <airborn...@gmail.com>
AuthorDate: Tue May 14 17:04:24 2024 +0800

    [Improve](inverted index) improve query performance by not using output 
index result column (#34281)
---
 be/src/olap/rowset/segment_v2/segment_iterator.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp 
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index 3dbb8b694ae..a74fb305795 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -2265,7 +2265,9 @@ Status 
SegmentIterator::_next_batch_internal(vectorized::Block* block) {
         RETURN_IF_ERROR(_convert_to_expected_type(_first_read_column_ids));
         RETURN_IF_ERROR(_convert_to_expected_type(_non_predicate_columns));
         _output_non_pred_columns(block);
-        _output_index_result_column(nullptr, 0, block);
+        if (!_enable_common_expr_pushdown || 
!_remaining_conjunct_roots.empty()) {
+            _output_index_result_column(nullptr, 0, block);
+        }
     } else {
         uint16_t selected_size = _current_batch_rows_read;
         uint16_t sel_rowid_idx[selected_size];


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to