fn clamp_impl<T: LogicalPrimitiveType, const CLAMP_MIN: bool, const CLAMP_MAX: bool>( input: &PrimitiveArray<T::ArrowPrimitive>, min: T::Native, max: T::Native, ) -> Result<VectorRef>