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

MatchExpression::debugString() should print new line consistently

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Query Execution
    • Fully Compatible
    • QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03

      Some of the debugString method of match expressions have newline printed, but some don't.

      https://github.com/10gen/mongo/blob/1b27b42504f05c5c8502b83c4d489230eb85c048/src/mongo/db/matcher/expression_expr.cpp#L80-L83
      https://github.com/10gen/mongo/blob/1b27b42504f05c5c8502b83c4d489230eb85c048/src/mongo/db/matcher/expression_leaf.cpp#L83-L95

      This prints unintuitive string if we have an $and expression over a list of them. We should unify them to make sure they print out consistent newlines.

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            rui.liu@mongodb.com Rui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: