shifluxxc opened a new pull request, #19583: URL: https://github.com/apache/datafusion/pull/19583
## Which issue does this PR close? - Part of #19250 . ## Rationale for this change Decimal values with negative scale represent multiplication by a power of ten, but the decimal-to-integer conversion helpers previously rejected such values. This caused valid negative-scale decimals to fail during evaluation ## What changes are included in this PR? Update decimal32_to_i32, decimal64_to_i64, and decimal128_to_i128 to correctly handle negative scales by multiplying instead of returning an error. ## Are these changes tested? Yes. Existing unit tests were updated and new cases were added to validate correct behavior -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
