Skip to content

[branch-50] Backport: More decimal 32/64 support - #17908

Closed
AdamGS wants to merge 2 commits into
apache:branch-50from
AdamGS:adamg/backport-17808
Closed

[branch-50] Backport: More decimal 32/64 support#17908
AdamGS wants to merge 2 commits into
apache:branch-50from
AdamGS:adamg/backport-17808

Conversation

@AdamGS

Copy link
Copy Markdown
Contributor

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-actionsgithub-actionsBot 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
Copy Markdown
ContributorAuthor

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

@AdamGSAdamGS mentioned this pull request Oct 3, 2025
22 tasks
AdamGSand 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
AdamGSforce-pushed the adamg/backport-17808 branch from 6db35d5 to 74ea1d5CompareOctober 3, 2025 20:24
@AdamGS

Copy link
Copy Markdown
ContributorAuthor

See #17907

@AdamGSAdamGS closed this Oct 4, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commonRelated to common cratecoreCore DataFusion cratefunctionsChanges to functions implementationlogical-exprLogical plan and expressionsphysical-planChanges to the physical-plan crateprotoRelated to proto cratesparksqlSQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@AdamGS