yixiutt commented on code in PR #15749:
URL: https://github.com/apache/doris/pull/15749#discussion_r1068116639


##########
be/src/vec/olap/vcollect_iterator.cpp:
##########
@@ -129,6 +132,19 @@ Status 
VCollectIterator::build_heap(std::vector<RowsetReaderSharedPtr>& rs_reade
                     new Level1Iterator(_children, _reader, _merge, 
_is_reverse, _skip_same));
         }
     } else {
+        bool have_multiple_child = false;
+        bool is_first_child = true;
+        for (auto iter = _children.begin(); iter != _children.end();) {
+            auto s = (*iter)->init_for_union(is_first_child, 
have_multiple_child);
+            if (!s.ok()) {
+                delete (*iter);
+                iter = _children.erase(iter);
+            } else {

Review Comment:
   fixed



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to