-
Notifications
You must be signed in to change notification settings - Fork 241
feat: [1941-Part1]: Introduce map-sort scalar function #2262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [1941-Part1]: Introduce map-sort scalar function #2262
Conversation
@comphead / @andygrove I have split the first part from |
return Err(DataFusionError::Internal(format!( | ||
"Unsupported operation: {:?}", | ||
op | ||
"Unsupported operation: {op:?}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR. Clippy fix made this change.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2262 +/- ##
============================================
+ Coverage 56.12% 57.78% +1.65%
- Complexity 976 1291 +315
============================================
Files 119 145 +26
Lines 11743 13360 +1617
Branches 2251 2378 +127
============================================
+ Hits 6591 7720 +1129
- Misses 4012 4384 +372
- Partials 1140 1256 +116 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3c4ecbb
to
2dad05f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rishvin starting the CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rishvin
…ache#2262)" This reverts commit f2baf95.
Which issue does this PR close?
Addresses Part of #1941
Rationale for this change
Introduces
map_sort
which is spark compatibleMapSort
function. SparkMapSort
was introduced in Spark-4.0 to allows grouping on Map type. It allows this by sorting the map by keys before doing the group by.This PR has been split from original PR #2221. Please see that for details.
What changes are included in this PR?
A new
map_sort
physical function.How are these changes tested?
Added unit tests.