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

Block API cellFoldValues_F should process non-boolean values

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2024-02-05
    • 156

      Currently cellFoldValues_F has a check that the data to be processed is made of all boolean values. However, the scalar counterpart, traverseF, can return non boolean values (e.g. when it is applied to a non-array value and the lambda returns non-boolean, i.e. Nothing) or handle non boolean values coming from the lambda (that are treated as "false")

      e.g.

      coll.aggregate([
                  { $match: { "time": { $in: [[new Date("2019-09-27T21:14:45.654Z")]] } } }, { $group: { _id: null } }]
              )
      

            Assignee:
            alberto.massari@mongodb.com Alberto Massari
            Reporter:
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: