Tanya-W commented on code in PR #13035:
URL: https://github.com/apache/doris/pull/13035#discussion_r1057206727


##########
be/src/olap/rowset/segment_v2/segment_iterator.cpp:
##########
@@ -1240,6 +1441,44 @@ Status SegmentIterator::next_batch(vectorized::Block* 
block) {
     return Status::OK();
 }
 
+void SegmentIterator::_output_index_return_column(vectorized::Block* block) {
+    if (block->rows() == 0) {
+        return;
+    }
+
+    for (auto column_sign : _rowid_result_for_index) {
+        block->insert({vectorized::ColumnUInt8::create(),
+                       std::make_shared<vectorized::DataTypeUInt8>(), 
column_sign.first});
+        if (!column_sign.second.first) {
+            // predicate not in compound query
+            continue;
+        }
+        _build_index_return_column(block, column_sign.first, 
column_sign.second.second);
+    }
+}
+
+void SegmentIterator::_build_index_return_column(vectorized::Block* block,

Review Comment:
   got it, has been updated



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to