-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor sort exec stream and combine batches #515
Conversation
Codecov Report
@@ Coverage Diff @@
## master #515 +/- ##
==========================================
+ Coverage 76.09% 76.11% +0.02%
==========================================
Files 155 155
Lines 26575 26602 +27
==========================================
+ Hits 20221 20249 +28
+ Misses 6354 6353 -1
Continue to review full report at Codecov.
|
49ddfd3
to
a0430e1
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.
👍
// sort combined record batch | ||
let result = combined | ||
.map(|batch| sort_batch(batch, schema, &expr)) | ||
.transpose()?; | ||
sort_time.add(now.elapsed().as_nanos() as usize); |
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.
Note here the semantic is changed because on err it would no longer log a metric which shall be the correct behavior
a0430e1
to
248ba2f
Compare
248ba2f
to
de4055b
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 @jimexist !
Which issue does this PR close?
to make way for #360 I'll need the combine batches fn, so i'll refactor the current sort exec stream and add some integration test by the way
this pull request is used by #516
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?