fn flush_primitive<T: ArrowPrimitiveType>( values: &mut Vec<T::Native>, nulls: Option<NullBuffer>, ) -> PrimitiveArray<T>