gavinchou commented on code in PR #53335:
URL: https://github.com/apache/doris/pull/53335#discussion_r2212027365


##########
be/src/olap/rowset/segment_v2/column_reader.cpp:
##########
@@ -802,13 +812,14 @@ Status ColumnReader::new_struct_iterator(ColumnIterator** 
iterator,
     ColumnIterator* sub_column_iterator;
     for (size_t i = 0; i < child_size; i++) {
         RETURN_IF_ERROR(_sub_readers[i]->new_iterator(
-                &sub_column_iterator, tablet_column ? 
&tablet_column->get_sub_column(i) : nullptr));
+                &sub_column_iterator,
+                tablet_column ? 
&tablet_column->get_sub_column(cast_set<uint32_t>(i)) : nullptr));
         sub_column_iterators.push_back(sub_column_iterator);
     }
 
     // create default_iterator for schema-change behavior which increase column
     for (size_t i = child_size; i < tablet_column_size; i++) {
-        TabletColumn column = tablet_column->get_sub_column(i);
+        TabletColumn column = 
tablet_column->get_sub_column(cast_set<uint32_t>(i));

Review Comment:
   declare i as `int` ?



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