etseidl commented on issue #7040:
URL: https://github.com/apache/arrow-rs/issues/7040#issuecomment-2635178656

   Now I'm conflicted. On the one hand, sentiment in the Parquet community 
seems to be heading towards returning an error for data that is malformed as in 
this issue. On the other, I've done some benchmarking of the fix vs the current 
code and have found that the fallible cast currently used is up to 2X slower 
than using the infallible casting as in #7055. This is also true for signed 
INT8 and INT16, but not for UINT32.
   
   @tustvold and @alamb, what do you think of special casing casts to truncated 
integer types? Is the speedup worth the extra code? And how do we then handle 
detecting malformed data and returning an error? Would we add a validation step 
for 8 and 16 bit integers?


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