[SERVER-82774] The assert about the empty field set implying no event filter is too strict Created: 03/Nov/23  Updated: 06/Nov/23  Resolved: 06/Nov/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: Irina Yatsenko (Inactive) Assignee: Irina Yatsenko (Inactive)
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: QI 2023-11-13
Participants:
Linked BF Score: 147

 Description   

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.



 Comments   
Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-82774 Remove the overly strict assert when lowering to SBE unpack with no included fields
Branch: master
https://github.com/mongodb/mongo/commit/7851eedd01cc22810ed0101b87724f22cdc1bef9

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