Improve error reporting for $setWindowFields

XMLWordPrintableJSON

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

      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
              Reporter:
              Ruslan Abdulkhalikov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: