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

The assert about the empty field set implying no event filter is too strict

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QI 2023-11-13
    • 147

      pipeline:

      [{$match: {x: {$all:[]}}}, {$replaceRoot: {newRoot: {y: 42}}}]
      

      produces the following stage:

      {
              "$_internalUnpackBucket" : {
                      "include" : [ ],
                      "timeField" : "a",
                      "metaField" : "b",
                      "bucketMaxSpanSeconds" : 3600,
                      "assumeNoMixedSchemaData" : true,
                      "eventFilter" : {
                              "$alwaysFalse" : 1
                      }
              }
      },
      

      That is, it's possible to have no fields included and an event filter with no deps.

            Assignee:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: