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

Create base class for Expressions with named arguments

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
    • Query Optimization

      We have the base class ExpressionNary which nicely abstracts away a lot of the parsing and other mechanical parts of the Expression interface for expressions of the form {$expressionName: [array, of, arguments]}. We should have a similar base class for expressions of the form {$expressionName: {arg1: val1, arg2: val2}.

      This will also help prevent a class of bugs where an expression forgets to implement serialize, or forgets to optimize it's arguments, etc.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: