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

Parse simple $between agg expression to a conjunction of gte/lte operators.

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Optimization
    • QO 2022-10-03, QE 2022-10-17

    Description

      Parse $between in these forms:

      Input BSON Materialized sub-Expression
      {$between: [<fieldpath>, 
          {$binData: <>}] }
      {$between: [<fieldpath>, 
          {$binData: <>}] }
      {$between: {input: <expression>, bounds: [<lowerBound>, <upperBound>] }

      }

      {$and: [
          {$gte: [expression, lowerBoundExpr]},
          {$lte: [expression, upperBoundExpr]}
      ]}

       
      BinData with subtype other than 6 should be rejected at this stage with a uassert.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: