liukun4515 commented on issue #2320: URL: https://github.com/apache/arrow-rs/issues/2320#issuecomment-1207603589
> Currently we only do decimal validation where: > > 1. Changing precision/scale by `with_precision_scale`. It is also selective since it does validation only new precision is smaller. When we create the decimal array from iter<Option<i128>>, and need to do validation. Because the default precision is the max precision(38). > 2. Appending value to decimal builders > 3. Performing full validation on ArrayData > 4. Reading CSV file > > I think it is somehow selective right now. Actually we do decimal validation less than necessary, as mentioned above `from_fixed_size_binary_array` doesn't validate input values. We just assume that the inputs are all valid if users use such API do build decimal array. -- 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]
