BiteTheDDDDt commented on code in PR #64413:
URL: https://github.com/apache/doris/pull/64413#discussion_r3426640959


##########
be/src/storage/segment/segment_iterator.cpp:
##########
@@ -2203,31 +2072,50 @@ bool 
SegmentIterator::_can_evaluated_by_vectorized(std::shared_ptr<ColumnPredica
     }
 }
 
-bool SegmentIterator::_prune_column(ColumnId cid, MutableColumnPtr& column, 
bool fill_defaults,
-                                    size_t num_of_defaults) {
-    if (_need_read_data(cid)) {
-        return false;
-    }
-    if (!fill_defaults) {
-        return true;
-    }
-    if (is_column_nullable(*column)) {
+void SegmentIterator::_fill_default_column(MutableColumnPtr& column, size_t 
num_of_defaults) {
+    if (column->is_nullable()) {
         auto nullable_col_ptr = 
reinterpret_cast<ColumnNullable*>(column.get());

Review Comment:
   这个好像原本代码是这么写的,应该可以顺便改下



-- 
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