[SERVER-51090] Maintain array ordering when value-arrays are parsed Created: 22/Sep/20  Updated: 29/Oct/23  Resolved: 22/Sep/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.8.0

Type: Task Priority: Major - P3
Reporter: George Wangensteen Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: PM-1749-aggExpr, PM-1749-find-milestone, qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-10-05
Participants:

 Description   

Currently the `valueArray` nonterminal reverses the order of elements in an array it parses. This can make things more difficult/confusing when dealing with the parse tree, translation, writing tests, etc, so this ticket tracks modifying that rule so that it maintains the input order of arrays in the parsed array object.
It would be nice if we could also check to see if any other array-building rules also have this issue.



 Comments   
Comment by Githook User [ 23/Sep/20 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-51090 Maintain array ordering when value-arrays are parsed
Branch: master
https://github.com/mongodb/mongo/commit/b7f972db6cf37e43ed547a7c415ae93c318de731

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