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

eldenmoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 6236a6f2de3 [Improve](inverted index) improve query performance by not 
using output index result column (#34281)
6236a6f2de3 is described below

commit 6236a6f2de3dc98412e9b825dd29bbe98d76f830
Author: airborne12 <[email protected]>
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 87ea45052fc..b9a356fb005 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -2337,7 +2337,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;
         _sel_rowid_idx.resize(selected_size);


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

Reply via email to