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

Vectorization of a filter stage without a filter expression fails to switch to scalar

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Execution
    • ALL
    • QE 2024-02-19
    • 144

    Description

      When a $match has an expression that, when compiled, leads to an empty filter, we don't check if the caller is able to process block values

       db.repro.explain().aggregate([{$project: {"obj.obj": 1}}, {$match: {$or: [{"hidden": {$bitsAnySet: NumberInt(6)}}, {$expr: {$literal: true}}]}}, {$sort: {_id: 1}},  {$group: {_id: null}}])
      

      Attachments

        Activity

          People

            alberto.massari@mongodb.com Alberto Massari
            alberto.massari@mongodb.com Alberto Massari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: