[SERVER-73939] MatchExpression::debugString() should print new line consistently Created: 13/Feb/23  Updated: 29/Oct/23  Resolved: 20/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Rui Liu Assignee: Adi Agrawal
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-02-20, QE 2023-03-06, QE 2023-03-20, QE 2023-04-03
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 20/Mar/23 ]

Author:

{'name': 'Adityavardhan Agrawal', 'email': 'adi.agrawal@mongodb.com', 'username': 'Adityav369'}

Message: SERVER-73939: Make debugString for matchExpressions consistent
Branch: master
https://github.com/mongodb/mongo/commit/67a1dd1b662b4273e969e4f2068c0dba2b9b8739

Generated at Thu Feb 08 06:26:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.