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

Refactor the mapOver functions in expression_algo.cpp

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

      The reason theĀ mapOver function doesn't have a case for the absence of a path passed is because it always expects to traverse a MatchExpression from the top. The path will get initialized to "" and then continuously get appended to/change as we traverse the nodes of the MatchExpression. The function as written has a few risks:

      • If we pass in a null MatchExpression, this function will crash
      • We may in the future want to differentiate between the absence of a path (using boost::optional) and ""

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            lynne.wang@mongodb.com Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: