[SERVER-53702] Error when window function partitionBy evaluates to an array Created: 11/Jan/21 Updated: 29/Oct/23 Resolved: 19/Feb/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Percy | Assignee: | Hartek Sabharwal |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query Optimization 2021-02-22 |
| Participants: |
| Description |
|
Since our plan for window functions is to implement partitioning via sorting, we should raise an error whenever the partitionBy expression evaluates to an array. (Because $sort compares arrays by their min or max element.) |
| Comments |
| Comment by Hartek Sabharwal [ 19/Feb/21 ] |
|
Merged under the wrong commit message (unrelated ticket) here:
Author: {'name': 'Hartek Sabharwal', 'email': 'hartek.sabharwal@mongodb.com', 'username': 'tectonic8'}Message: |