Desugar $where to $expr + $function

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2 Required
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Query 2020-01-27, Query 2020-02-10, Query 2020-02-24
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Support $where by translating it to $function. Then remove the existing implementation of $where.

      $function is an aggregation expression while $where is a match expression, so we can use $expr to embed the agg expression where a match expression is expected.

      This new implementation of $where will not support passing a CodeWithScope as the function.

      Make sure $where still works on FCV 4.2, even though $function may be restricted to FCV 4.4.

            Assignee:
            Eric Cox (Inactive)
            Reporter:
            David Percy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: