kangpinghuang commented on a change in pull request #656: Modify alter tablet
implementation and change ColumnPruning to ZoneMap
URL: https://github.com/apache/incubator-doris/pull/656#discussion_r259685789
##########
File path: be/src/olap/olap_cond.cpp
##########
@@ -601,25 +601,24 @@ bool Conditions::delete_conditions_eval(const RowCursor&
row) const {
}
bool Conditions::delta_pruning_filter(
- const std::vector<std::pair<WrapperField*, WrapperField*>>&
column_statistics) const {
+ const std::vector<std::pair<WrapperField*, WrapperField*>>& zone_maps)
const {
//通过所有列上的删除条件对version进行过滤
for (auto& cond_it : _columns) {
- if (cond_it.second->is_key() && cond_it.first >
column_statistics.size()) {
- OLAP_LOG_WARNING("where condition not equal column statistics
size."
- "[cond_id=%d, column_statistics_size=%lu]",
- cond_it.first,
- column_statistics.size());
+ if (cond_it.second->is_key() && 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_it.second->is_key() &&
!cond_it.second->eval(column_statistics[cond_it.first])) {
+ if (cond_it.second->is_key() &&
!cond_it.second->eval(zone_maps[cond_it.first])) {
return true;
}
}
return false;
}
int Conditions::delete_pruning_filter(
- const std::vector<std::pair<WrapperField*, WrapperField*>>& col_stat)
const {
+ const std::vector<std::pair<WrapperField*, WrapperField*>>& zone_maps)
const {
Review comment:
Use KeyRange
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]