Refactor the mapOver functions in expression_algo.cpp

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

      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:
            [DO NOT USE] Backlog - Query Optimization
            Reporter:
            Lynne Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: