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

SBE stage builder fails to generate plan using $mod in an index scan

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • ALL
    • QE 2024-03-18, QE 2024-04-01, QE 2024-04-15, QE 2024-04-29, QE 2024-05-13

      The following query:

       db.x.find({"a.0": {$mod: [42,0]}}).explain()
      

      fails with the error 7097205 "Expected either input expr or top-level field slot to be defined" when an index on "a.0" is defined on the collection, but succeeds if there is no such index

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

              Created:
              Updated: