[SERVER-78861] $type should not serialize with "?" or "or more types" Created: 11/Jul/23  Updated: 29/Oct/23  Resolved: 14/Jul/23

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

Type: Bug Priority: Major - P3
Reporter: Will Buerger Assignee: Naama Bareket
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-85070 PM-2885 Tracking: Known find correctn... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

After serialization with "LiteralSerializationPolicy::kToRepresentativeParseableValue", $type fails to re-parse with the errorĀ 

Unknown type name alias: ? 

or

Unknown type name alias: or more types 

You can see the relevant failing tests in the query_stats_passthrough in BF-29270 and BF-29271



 Comments   
Comment by Githook User [ 14/Jul/23 ]

Author:

{'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}

Message: SERVER-78861: $type should not serialize with "?" or "or more types"
Branch: master
https://github.com/mongodb/mongo/commit/1ad7740368835a1827583c95904845559a282de1

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