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

Vectorizer is not folding output of 'exists'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • QE 2023-10-30
    • 155

      > db.fuzzer_coll.explain().aggregate([{$match: {"array": {$exists: true}}}, {$count: "num" }])
      
      [4] project [s13 = makeBsonObj(MakeObjSpec([\"num\"], Closed, ReturnNothing), s12)] 
      [3] mkobj s12 [_id = s11, num = s9] true false 
      [3] project [s11 = null] 
      [3] group [] [s9 = sum(1)] spillSlots[s10] mergingExprs[sum(s10)] 
      [2] block_to_row blocks[s5] row[s8] s7 
      [2] project [s7 = valueBlockExists(cellBlockGetFlatValuesBlock(s6))] 
      [2] ts_bucket_to_cellblock s3 pathReqs[s5 = Get(array)/Id, s6 = Get(array)/Traverse/Id] 
      [1] filter {(traverseF(s2, lambda(l101.0) { traverseF(getField(move(l101.0), \"max\"), lambda(l102.0) { exists(getField(move(l102.0), \"array\")) }, false) }, false) && traverseF(s2, lambda(l103.0) { traverseF(getField(move(l103.0), \"min\"), lambda(l104.0) { exists(getField(move(l104.0), \"array\")) }, false) }, false))} 
      [1] scan s3 s4 none none none none none none lowPriority [s2 = control] @\"dcc8f30a-4eb1-4e28-9d50-129c139ba23f\" true false 
      
      

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

              Created:
              Updated:
              Resolved: