- 
    Type:Improvement 
- 
    Resolution: Done
- 
    Priority:Major - P3 
- 
    None
- 
    Affects Version/s: None
- 
    Component/s: None
- 
        Query Integration
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
Query stats relies on the property that any query that is parsed and serialized can then be re-parsed. We have discovered cases where this is not true (SERVER-98935, for example), and we treated these as bugs that need to be fixed.
There are likely more cases like this. To me, this seems like a good candidate for a PBT!
- is related to
- 
                    SERVER-98935 $elemMatch with nested $all is not reparseable -         
- In Progress
 
-         
- 
                    SERVER-92403 Skip 'n' expression evaluation during ExpressionN serialization -         
- Closed
 
-         
- 
                    SERVER-103396 Add jstest to confirm query stats won't throw errors on a non-debug build -         
- Closed
 
-         
- 
                    SERVER-96850 Pipeline nested within $merge isn't validated to parse OK until runtime -         
- Closed
 
-         
- related to
- 
                    SERVER-98935 $elemMatch with nested $all is not reparseable -         
- In Progress
 
-         
- 
                    SERVER-86945 $jsonSchema with $field in properties is not re-parseable -         
- Closed
 
-