[SERVER-51468] [SBE] Fix bug with $in operator Created: 09/Oct/20  Updated: 29/Oct/23  Resolved: 20/Nov/20

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Drew Paroski Assignee: Melodee Li
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

 

> db.coll.drop()
> db.coll.insert({a: [1,2]})

> db.adminCommand({setParameter:1, internalQueryEnableSlotBasedExecutionEngine:false})
> db.coll.find({a: {$in: [[1,2], /^a/]}}, {_id: 0})
{ "a" : [ 1, 2 ] }

> db.adminCommand({setParameter:1, internalQueryEnableSlotBasedExecutionEngine:true})
> db.coll.find({a: {$in: [[1,2], /^a/]}}, {_id: 0})
[no results]

 

Sprint: Query 2020-12-14
Participants:

 Description   

See the "Steps To Reproduce" section for instructions on how to reproduce the bug.

The goal of this task is to update the SBE implementation of the $in operator to fix the bug.



 Comments   
Comment by Githook User [ 21/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-51468 ignore use-after-move clang-tidy error
Branch: master
https://github.com/mongodb/mongo/commit/8a8435ba30e2ba76e09ea2992b8dfb3f64246702

Comment by Githook User [ 20/Nov/20 ]

Author:

{'name': 'Melodee Li', 'email': 'melodeeli98@gmail.com', 'username': 'melodeeli98'}

Message: SERVER-51468 [SBE] Fix bug with $in operator
Branch: master
https://github.com/mongodb/mongo/commit/f1ef6380eaf1d14f36b3d3ab4ba653dd3371480d

Generated at Thu Feb 08 05:25:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.