-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query Optimization
-
Fully Compatible
-
Query 2020-07-13
-
(copied to CRM)
-
200
-
None
-
None
-
None
-
None
-
None
-
None
-
None
$convert with target type string (aka $toString) should accept all supported bson types. For example, converting an object or an array fails:
> db.foo.aggregate([{$set: {x: {$toString: {x: 2}}}}]) 2020-02-11T14:12:49.418-0500 E QUERY [js] uncaught exception: Error: command failed: { "ok" : 0, "errmsg" : "Failed to optimize pipeline :: caused by :: Unsupported conversion from object to string in $convert with no onError value", "code" : 241, "codeName" : "ConversionFailure" } : aggregate failed :
- is depended on by
-
COMPASS-9816 Investigate changes in SERVER-46079: $convert should allow any type to be converted to string
-
- Needs Triage
-
- is related to
-
SERVER-43411 add base64 and UUID conversion functions or add BinData $convert
-
- Closed
-
- related to
-
SERVER-109832 Constrain query-correctness-tests to all-feature-flags variants
-
- Closed
-