liukun4515 commented on code in PR #3242:
URL: https://github.com/apache/arrow-rs/pull/3242#discussion_r1035719398
##########
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 {
Review Comment:
cc @viirya @tustvold I am not sure if the ownership need to be moved
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]