liukun4515 commented on code in PR #3242:
URL: https://github.com/apache/arrow-rs/pull/3242#discussion_r1035722766


##########
arrow-array/src/array/primitive_array.rs:
##########
@@ -1151,6 +1151,14 @@ impl<T: DecimalType + ArrowPrimitiveType> 
PrimitiveArray<T> {
         })
     }
 
+    /// Validates the Decimal Array, if the value of slot is overflow for the 
specified precision, and
+    /// will be casted to Null
+    pub fn null_if_overflow_precision(self, precision: u8) -> Self {
+        self.unary_opt::<_, T>(|v| {

Review Comment:
   thanks for the friendly api provided from @tustvold @viirya 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to