doris
doris copied to clipboard
[enhancement](Nereids)refactor sort plan in nereids
Proposed changes
- rename PhysicalHeapSort to PhysicalQuickSort
- add LogicalTopN and PhysicalTopN
- add implementation rule for LogicalTopN
- add a interface Sort for both logical and physical sort
- add a interface TopN for both logical and physical top-n
- add a AbstractPhysicalSort as super class of PhysicalQuickSort and PhysicalTopN
Checklist(Required)
- Does it affect the original behavior:
- [ ] Yes
- [x] No
- [ ] I don't know
- Has unit tests been added:
- [ ] Yes
- [x] No
- [ ] No Need
- Has document been added or modified:
- [ ] Yes
- [ ] No
- [x] No Need
- Does it need to update dependencies:
- [ ] Yes
- [x] No
- Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [x] No
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...
@englefly @jackwener PTAL
PR approved by anyone and no changes requested.
@924060929 PTAL