Validate field paths during PathArrayness lookup

XMLWordPrintableJSON

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

      Currently, the PathArrayness API uses FieldPath and the constructor of FieldPath will uassert if we give it an invalid FieldPath even if the actual path is valid in MQL, e.g. empty path in MatchExpressions.

      We should validate the input FieldPath by calling FieldPath::validateFieldName() and if we return an error, we should just return the conservative guarantee, i.e. input field path is an array.

            Assignee:
            Matt Olma
            Reporter:
            Naafiyan Ahmed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: