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

[SBE] Fix bug with $in operator

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Querying
    • Fully Compatible
    • ALL
    • Hide

       

      > 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]

       

      Show
        > 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]  
    • Query 2020-12-14

    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.

      Attachments

        Activity

          People

            melodee.li@mongodb.com Melodee Li
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: