Uh oh!
There was an error while loading. Please reload this page.
Teach optimizer that CoalesceBatchesExec does not destroy output order - #4332
Conversation
alamb
commented
Nov 23, 2022
i just need to figure out how to write a test for this PR and it will be ready |
mingmwang
commented
Nov 25, 2022
I think you can construct a UT to test and verify a sorted input stream is still keep sorted after |
a7f5fb6 to
137fb2aCompare| // The optimizer should not add an additional SortExec as the | ||
| // data is already sorted | ||
| let expected = &[ |
There was a problem hiding this comment.
Here is the test (that mimics my usecase in IOx) -- without the changes in this PR this test fails (as there is a SortExec present)
ursabot
commented
Nov 28, 2022
Benchmark runs are scheduled for baseline = dafd957 and contender = a31b44e. a31b44e is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes#4331
Rationale for this change
See #4331
What changes are included in this PR?
Teach optimizer that
CoalesceBatchesExecdoes not destroy output orderAre these changes tested?
Yes
Are there any user-facing changes?
BasicEnforcement will not add unecessary
SortExecs