Skip to content

Conversation

AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Oct 3, 2025

Which issue does this PR close?

Rationale for this change

Fills up decimal32/64 support as introduced in #17501

What changes are included in this PR?

The biggest change in this PR is that type coercion for binary expression now not only supports the new decimal types, but it will try and extend one side into the other, which would just fail right now.

Minor changes

  1. Support abs(deicmal32/64)
  2. Support SMJ on Decimal32/64 (256 was left out, and I'm unclear if it was overlooked or omitted intentionally).

Are these changes tested?

Additional coercion tests

Are there any user-facing changes?

No public API changes, but more combination of operations should work.

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions core Core DataFusion crate common Related to common crate proto Related to proto crate functions Changes to functions implementation physical-plan Changes to the physical-plan crate spark labels Oct 3, 2025
@AdamGS
Copy link
Contributor Author

AdamGS commented Oct 3, 2025

@alamb this is the best way I figured out to set up the changes across repos, seems like pointing the PR at the intermediate branch did not make the followup point to branch-50 once it was merged.

@AdamGS AdamGS mentioned this pull request Oct 3, 2025
22 tasks
AdamGS and others added 2 commits October 3, 2025 21:15
* Support Decimal32/64 types

* Fix bugs, tests, handle more aggregate functions and schema

* Fill out more parts in expr,common and expr-common

* Some stragglers and overlooked corners

* Actually commit the avg_distinct support

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* More small decimal support

* CR comments

Co-authored-by: Jeffrey Vo <jeffrey.vo.australia@gmail.com>

* Add tests and cleanup some code

---------

Co-authored-by: Jeffrey Vo <jeffrey.vo.australia@gmail.com>
@AdamGS AdamGS force-pushed the adamg/backport-17808 branch from 6db35d5 to 74ea1d5 Compare October 3, 2025 20:24
@AdamGS
Copy link
Contributor Author

AdamGS commented Oct 4, 2025

See #17907

@AdamGS AdamGS closed this Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Related to common crate core Core DataFusion crate functions Changes to functions implementation logical-expr Logical plan and expressions physical-plan Changes to the physical-plan crate proto Related to proto crate spark sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant