Skip to content

Commit

Permalink
[Chore][inverted index] remove duplicate null bitmap reader in functi…
Browse files Browse the repository at this point in the history
…on array index (apache#40907)

## Proposed changes
duplicate code in array_contains inverted index evaluate function.
  • Loading branch information
airborne12 authored Sep 18, 2024
1 parent 4c212f1 commit 7cca252
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions be/src/vec/functions/array/function_array_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ class FunctionArrayIndex : public IFunction {
roaring->cardinality(), result_bitmap);
}
})
if (iter->has_null()) {
segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle;
RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle));
null_bitmap = null_bitmap_cache_handle.get_bitmap();
}
segment_v2::InvertedIndexResultBitmap result(roaring, null_bitmap);
bitmap_result = result;
bitmap_result.mask_out_null();
Expand Down

0 comments on commit 7cca252

Please sign in to comment.