fn build_range_bitmap<T: ArrowPrimitiveType>( range: &Range<usize>, input: &PrimitiveArray<T>, ) -> BooleanBufferBuilder