[SERVER-81008] [CQF] Disjunction fails to propagate _retainPredicate flag in over-approximation Created: 12/Sep/23  Updated: 29/Oct/23  Resolved: 18/Sep/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Daniel Segel Assignee: Daniel Segel
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2023-09-18, QO 2023-10-02
Participants:
Linked BF Score: 35

 Description   

{ $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.



 Comments   
Comment by Githook User [ 18/Sep/23 ]

Author:

{'name': 'Daniel Segel', 'email': 'daniel.segel@mongodb.com', 'username': ''}

Message: SERVER-81008 Set _retainPredicate flag in sameFieldDisjunction over-approximation
Branch: master
https://github.com/mongodb/mongo/commit/f4cdb2721c1ab353c238ca4b97339048ea7a77f7

Generated at Thu Feb 08 06:45:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.