viirya commented on code in PR #6419:
URL: https://github.com/apache/arrow-rs/pull/6419#discussion_r1766982407


##########
arrow-array/src/types.rs:
##########
@@ -1254,6 +1260,10 @@ impl DecimalType for Decimal128Type {
     fn validate_decimal_precision(num: i128, precision: u8) -> Result<(), 
ArrowError> {
         validate_decimal_precision(num, precision)
     }
+
+    fn is_valid_decimal_precision(value: Self::Native, precision: u8) -> bool {
+        is_validate_decimal_precision(value, precision)
+    }

Review Comment:
   Is this used to avoid creating `ArrowError` and the error string for the 
cases that we don't need the error?



-- 
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]

Reply via email to