You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "AdamGS (via GitHub)" <gi...@apache.org> on 2025/10/03 19:03:30 UTC
[PR] Support Decimal32/64 types (#17501) [datafusion]
AdamGS opened a new pull request, #17907:
URL: https://github.com/apache/datafusion/pull/17907
## Which issue does this PR close?
- Related to https://github.com/apache/datafusion/issues/17849
- https://github.com/apache/datafusion/issues/17501
- https://github.com/apache/datafusion/issues/17489
## Rationale for this change
Backports initial support for decimal 32/64 to the 50.x branch
## What changes are included in this PR?
See original [PR](https://github.com/apache/datafusion/issues/17501):
- Multiple aggregation functions
- Some decimal type coercion
## Are these changes tested?
Includes some tests and reinforced by SLT. Follow up PR contains more tests.
## Are there any user-facing changes?
No
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "AdamGS (via GitHub)" <gi...@apache.org>.
AdamGS commented on PR #17907:
URL: https://github.com/apache/datafusion/pull/17907#issuecomment-3367069175
there are changes in `dfschema.rs` that snuck in somehow? I'll fix it.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "AdamGS (via GitHub)" <gi...@apache.org>.
AdamGS commented on code in PR #17907:
URL: https://github.com/apache/datafusion/pull/17907#discussion_r2403401614
##########
datafusion/common/src/scalar/mod.rs:
##########
@@ -231,6 +233,10 @@ pub enum ScalarValue {
Float32(Option<f32>),
/// 64bit float
Float64(Option<f64>),
+ /// 32bit decimal, using the i32 to represent the decimal, precision scale
+ Decimal32(Option<i32>, u8, i8),
Review Comment:
That makes perfect sense, should've noticed it myself.
I can wait until November, sorry about causing so much noise pushing for this release, at least we'll get the docs fix in.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "AdamGS (via GitHub)" <gi...@apache.org>.
AdamGS closed pull request #17907: [Branch-50] Backport: Support Decimal32/64 types (#17501)
URL: https://github.com/apache/datafusion/pull/17907
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #17907:
URL: https://github.com/apache/datafusion/pull/17907#issuecomment-3367045874
Why does this PR has substantially more lines that the original PR?
This PR
<img width="1323" height="172" alt="Screenshot 2025-10-03 at 4 00 40 PM" src="https://github.com/user-attachments/assets/f4adf867-1ad4-4b64-a563-2b7a765b5d18" />
Original PR: https://github.com/apache/datafusion/pull/17501
<img width="1386" height="197" alt="Screenshot 2025-10-03 at 4 00 29 PM" src="https://github.com/user-attachments/assets/e464a102-3ec7-40f9-b0ef-72ed4f329fef" />
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "AdamGS (via GitHub)" <gi...@apache.org>.
AdamGS commented on PR #17907:
URL: https://github.com/apache/datafusion/pull/17907#issuecomment-3367099381
Ok now it seems better, its not a perfect match because some of the changes were based upon https://github.com/apache/datafusion/pull/17459, which wasn't backported.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] [Branch-50] Backport: Support Decimal32/64 types (#17501) [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #17907:
URL: https://github.com/apache/datafusion/pull/17907#discussion_r2403374748
##########
datafusion/common/src/scalar/mod.rs:
##########
@@ -231,6 +233,10 @@ pub enum ScalarValue {
Float32(Option<f32>),
/// 64bit float
Float64(Option<f64>),
+ /// 32bit decimal, using the i32 to represent the decimal, precision scale
+ Decimal32(Option<i32>, u8, i8),
Review Comment:
I think 🤔 this is technically a breaking API change I think because `ScalarValue` is a public enum and not parsed `non_exhastive`... So we can't backport it to the branch-50 without breaking the API
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org