chaoyli commented on a change in pull request #3699:
URL: https://github.com/apache/incubator-doris/pull/3699#discussion_r431528008



##########
File path: be/src/olap/olap_cond.cpp
##########
@@ -651,14 +651,10 @@ bool Conditions::delete_conditions_eval(const RowCursor& 
row) const {
 bool Conditions::rowset_pruning_filter(const std::vector<KeyRange>& zone_maps) 
const {
     //通过所有列上的删除条件对version进行过滤
     for (auto& cond_it : _columns) {
-        if (_cond_column_is_key_or_duplicate(cond_it.second) && cond_it.first 
> zone_maps.size()) {
-            LOG(WARNING) << "where condition not equal zone maps size. "
-                         << "cond_id=" << cond_it.first
-                         << ", zone_map_size=" << zone_maps.size();
-            return false;
-        }
-        if (_cond_column_is_key_or_duplicate(cond_it.second) && 
!cond_it.second->eval(zone_maps.at(cond_it.first))) {
-            return true;
+        if (_cond_column_is_key_or_duplicate(cond_it.second)) {
+            if (cond_it.first < zone_maps.size() && 
!cond_it.second->eval(zone_maps.at(cond_it.first))) {

Review comment:
       Yes, because zone_maps has only one item. zone_maps.at(1) will core dump.




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

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