[fix](scanner) coredump caused by 'prune_predicates_by_zone_map' (#25555)
This commit is contained in:
@ -179,6 +179,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
DCHECK_LE(sizeof(T), statistic.first->size());
|
||||
|
||||
T tmp_min_value {};
|
||||
T tmp_max_value {};
|
||||
memcpy((char*)(&tmp_min_value), statistic.first->cell_ptr(), sizeof(WarpperFieldType));
|
||||
|
||||
@ -162,7 +162,9 @@ Status Segment::new_iterator(SchemaSPtr schema, const StorageReadOptions& read_o
|
||||
auto pruned_predicates = read_options.column_predicates;
|
||||
auto pruned = false;
|
||||
for (auto& it : _column_readers) {
|
||||
if (it.second->prune_predicates_by_zone_map(pruned_predicates, it.first)) {
|
||||
const auto uid = it.first;
|
||||
const auto column_id = read_options.tablet_schema->field_index(uid);
|
||||
if (it.second->prune_predicates_by_zone_map(pruned_predicates, column_id)) {
|
||||
pruned = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user