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

Improve error message when sorting parallel arrays

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 3.7.3
    • None
    • Querying
    • Fully Compatible

    Description

      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"

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: