viirya opened a new issue, #3995: URL: https://github.com/apache/arrow-rs/issues/3995
**Describe the bug** <!-- A clear and concise description of what the bug is. --> Although `cast` kernel uses `CastOptions` when casting from integer to decimal, its behavior on overflow-checking is incomplete. For now, it'd check division or multiplication if overflowing on underlying decimal native types (i.e., i128 and i256). But it doesn't check if input integer is overflowing on decimal precision. This causes weird behavior when downstream project (e.g., DataFusion) uses `cast` kernel to cast integer to decimal. **To Reproduce** <!-- Steps to reproduce the behavior: --> **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Additional context** <!-- Add any other context about the problem here. --> -- 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]
