liukun4515 commented on issue #3223:
URL: https://github.com/apache/arrow-rs/issues/3223#issuecomment-1330304809

   > I thought we had agreed to only care about overflow of the underlying 
type, and leave it to users to validate decimals if 
   they care about precision. Provided we aren't overflowing and losing data, 
I'm not sure why we would validate precision at all?
   
   Now arrow-rs has the API of `pub fn validate_decimal_precision(&self, 
precision: u8) -> Result<(), ArrowError> ` to check the precision for the 
decimal array.
   I think we need a method to do the above requirements, if the value is 
overflow the precision, and it should be converted to None.
   Maybe we should provide the api to change the `null_bit_map` in the 
DecimalArray, If user want to validate precision to get `None` or `Error`.
   
   @tustvold 


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