Lchangliang commented on code in PR #12160:
URL: https://github.com/apache/doris/pull/12160#discussion_r965450219


##########
be/src/olap/reader.cpp:
##########
@@ -475,7 +475,7 @@ ColumnPredicate* TabletReader::_parse_to_predicate(
 }
 
 ColumnPredicate* TabletReader::_parse_to_predicate(const FunctionFilter& 
function_filter) {
-    int32_t index = _tablet->field_index(function_filter._col_name);
+    int32_t index = _tablet_schema->field_index(function_filter._col_name);

Review Comment:
   Yes, tablet->fieled_index should not be need any more. Because we can use 
_tablet_schema->field_index directly. I remove the method in this pr too in 
case someone makes a mistake. That can cause some problems when table is enable 
light schema change.



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