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

Improve error reporting for $setWindowFields

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Query Parsing
    • Query Optimization 2021-05-31, Query Optimization 2021-06-14

      db.blah.aggregate([{$setWindowFields ...
      					"obj" : {
      						"$shift" : {
      							"output" : {
      								"$mergeObjects" : [
      									"$obj.obj.obj.obj"
      								]
      ...
      

      fails with "errmsg" : "Unrecognized window function"
      It should report tried candidates, in this case "$shift"

            Assignee:
            maddie.zechar@mongodb.com Maddie Zechar
            Reporter:
            ruslan.abdulkhalikov@mongodb.com Ruslan Abdulkhalikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: