[SERVER-79564] Avoid re-calculating partition by and sort by expressions in stage builder Created: 01/Aug/23 Updated: 13/Oct/23 Resolved: 13/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Rui Liu | Assignee: | Backlog - Query Execution |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Participants: |
| Description |
|
Currently, we cannot reuse the sort keys in the previous stage builder as the partition values or the sort-by values for range window bounds. For this reason, we're rebuilding the partition-by and sort-by expressions in the window stage builder. We should come up with a solution to avoid repeated evaluation. |