[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: SERVER-54236 Implement $count accumulator
Branch: master
https://github.com/mongodb/mongo/commit/ff52d6d37b1eafe5b4ffc3cfd8b27d4b9b65776f

Generated at Thu Feb 08 05:31:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.