Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32859

Improve error message when sorting parallel arrays

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The current error message states:

      2018-01-22T13:38:07.220-0500 E QUERY    [thread1] Error: command failed: {
      	"ok" : 0,
      	"errmsg" : "cannot sort with keys that are parallel arrays",
      	"code" : 2,
      	"codeName" : "BadValue"
      } : aggregate failed :
      

      I would suggest removing the term parallel array for something more user-friendly, like "cannot sort on multiple fields containing arrays"

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: