fn take_bits<I: ArrowPrimitiveType>( values: &BooleanBuffer, indices: &PrimitiveArray<I>, ) -> BooleanBuffer