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

[CQF] Disjunction fails to propagate _retainPredicate flag in over-approximation

    • 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
    • QO 2023-09-18, QO 2023-10-02
    • 35

      { $match: {
          $and: [{                
               $or: [{                        
                   $and: [{                            
                       $and: [                                
                           {"obj.obj.obj.date": {$lt: new Date("2019-11-22T07:26:07.247Z")}},
                           {"obj.obj.obj.str": {$not: {$gte: "bottom-line contingency"}}}]}]},
                   {"obj.obj.obj.date": {$gte: new Date("2019-12-15T15:20:50.078Z")}}]}]}} 
      

      The {"obj.obj.obj.str": {$not: {$gte: "bottom-line contingency"}}}]}]} gets dropped and replaced by a union of the two date ranges.

            Assignee:
            daniel.segel@mongodb.com Daniel Segel
            Reporter:
            daniel.segel@mongodb.com Daniel Segel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: