feat: Support ANSI mode SUM (Decimal types)#2826
Conversation
|
@andygrove , Please kickoff CI whenever get a chance . This PR should essentially finish impl ANSI (along with #2600 ) for all numeric types |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2826 +/- ##
============================================
+ Coverage 56.12% 59.17% +3.05%
- Complexity 976 1478 +502
============================================
Files 119 167 +48
Lines 11743 15188 +3445
Branches 2251 2522 +271
============================================
+ Hits 6591 8988 +2397
- Misses 4012 4916 +904
- Partials 1140 1284 +144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Fixed test failures by converting state variables into option and is_empty as per spark semantics . @andygrove , Please kickoff CI whenever you get a chance. |
|
Fixed scala 2.13 formatting failures |
|
Thank you for the approval @martin-g |
andygrove
left a comment
There was a problem hiding this comment.
Thanks @coderfender. One nit - the tests shouldn't be setting CometConf.getExprAllowIncompatConfigKey(classOf[Sum]) -> "true" so would be good to remove those lines.
This can be done in a separate PR |
|
Thanks for the review @martin-g |
Which issue does this PR close?
Closed #531 (Adds ANSI support for decimal inputs)
Rationale for this change
is_null,is_emptyflags). The only update here is to consolidate the state variables to 2 (optional i128 and an is_null flag). Unlike int sum, spark leverages both the sum and is_empty state vars in all modesWhat changes are included in this PR?
SumDecimalHow are these changes tested?