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

$densify creates documents outside of bounds

    • Query Integration
    • Minor Change
    • ALL
    • v7.0, v6.0

      When running the attached aggregation pipeline we can see that $density stage is creating a document that is outside of the lower bound.

      One example document is this one:

      {
        "date": {
          "$date": "2023-04-30T22:00:00.000Z"
        },
        "identifier": {
          "timeSeriesMetaId": {
            "$oid": "649155e254fed3423f67efec"
          },
          "transactionId": "a6467a8e-cd71-425c-afc7-0d33bc7892bf",
          "validFrom": {
            "$date": "2023-06-20T09:01:20.643Z"
          }
        },
        "_id": {
          "$oid": "64916ae054fed3423f002c3a"
        },
        "__v": 0,
        "value": 27
      }

      This was discovered on Atlas with MongoDB 6.0.6

        1. $density_screenshot.png
          $density_screenshot.png
          44 kB
        2. agg_pipeline
          3 kB

            Assignee:
            ted.tuckman@mongodb.com Ted Tuckman
            Reporter:
            timo.lackmann@mongodb.com Timo Lackmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: