From 7cca2523fae9e609f977a1a02c2ca33d8cd92661 Mon Sep 17 00:00:00 2001 From: airborne12 Date: Wed, 18 Sep 2024 15:33:03 +0800 Subject: [PATCH] [Chore][inverted index] remove duplicate null bitmap reader in function array index (#40907) ## Proposed changes duplicate code in array_contains inverted index evaluate function. --- be/src/vec/functions/array/function_array_index.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/be/src/vec/functions/array/function_array_index.h b/be/src/vec/functions/array/function_array_index.h index e4426e95ce39da..2339fe4c5097d9 100644 --- a/be/src/vec/functions/array/function_array_index.h +++ b/be/src/vec/functions/array/function_array_index.h @@ -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();