Add default implementation of MatchExpression::getOptimizer

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      we have the following default implementation

      ```
      ExpressionOptimizerFunc getOptimizer() const final {
      return [](std::unique_ptr<MatchExpression> expression)

      { return expression; }

      ;
      }
      ```

      in at least the following implementations:

      • WhereMatchExpressionBase
      • GeoMatchExpression
      • GeoNearMatchExpression
      • TwoDPtInAnnulusExpression
      • SizeMatchExpression
      • TextMatchExpressionBase
      • TypeMatchExpressionBase
      • InternalSchemaBinDataSubTypeExpression
      • AlwaysBooleanMatchExpression
      • InternalBucketGeoWithinMatchExpression
      • ComparisonMatchExpressionBase
      • RegexMatchExpression
      • ModMatchExpression
      • ExistsMatchExpression
      • BitTestMatchExpression
      • at least half of the JSON schema operators

      we should make this the default implementation

              Assignee:
              Unassigned
              Reporter:
              Jess Balint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: