neilconway opened a new pull request, #22448: URL: https://github.com/apache/datafusion/pull/22448
## Which issue does this PR close? - Closes #14272 ## Rationale for this change In a comparison context, type coercion between a float and a decimal previously resulted in preferring decimal; it should instead prefer float, for several reasons: 1. DataFusion's decimal implementation cannot represent special values like NaN and +/- infinity 2. Float64's range is significantly larger than decimal's range 3. Preferring float matches the behavior of PostgreSQL and DuckDB ## What changes are included in this PR? * Update `decimal_coercion` behavior * Update SLT expected results for new behavior * Add new SLT tests for new behavior ## Are these changes tested? Yes; new tests added. ## Are there any user-facing changes? Yes; changes in type coercion. -- 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]
