[SERVER-82007] $setWindowFields window bounds fails to re-parse Created: 09/Oct/23  Updated: 02/Nov/23  Resolved: 02/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alyssa Clark Assignee: Alyssa Clark
Resolution: Fixed Votes: 0
Labels: product-high-priority
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-85096 TRACKING: M3 Correctness Tickets Closed
Duplicate
is duplicated by SERVER-82006 $setWindowFields window unit fails to... Closed
is duplicated by SERVER-82008 $setWindowFields $expMovingAvg alpha ... Closed
Related
is related to SERVER-75596 Stress $queryStats read path for aggr... Closed
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QI 2023-11-13
Participants:
Linked BF Score: 175

 Description   

This ticket covers $setWindowFields failures related to window bounds re-parsing in BF-30324.

"Was not able to re-parse queryStats key when reading queryStats.Status Location5339900: Lower bound must not exceed upper bound: [1, 0] Hash: 9438084818423628190 Query Shape: { cmdNs: { db: \"test\", coll: \"comprehensive_parse\" }, command: \"aggregate\", pipeline: [ { $sort: { partition: 1, partitionSeq: -1 } }, { $_internalSetWindowFields: { partitionBy: \"$partition\", sortBy: { partitionSeq: -1 }, output: { x: { $first: \"$a\", window: { documents: [ 1, \"current\" ] } } } } } ] }" 

Bounds derived from the output.window.documents and output.window.range fields can hit this error.



 Comments   
Comment by Githook User [ 02/Nov/23 ]

Author:

{'name': 'Alyssa Wagenmaker', 'email': 'alyssa.wagenmaker@mongodb.com', 'username': 'awagenmaker'}

Message: SERVER-82007 Fix setWindowFields re-parsing errors

Generated at Thu Feb 08 06:47:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.