-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, ExtensionStage::doGetNext() creates a document from the result of the extension's getNext() and returns a GetNextResult. To accommodate metadata changes, the process for when the result code is kAdvanced should be as follows:
- Create a MutableDocument, passing through a Document initialized with the result's bson.
- If the result contains metadata, iterate its fields, map each name with `DocumentMetadataFields:: parseMetaType()`, and call MutableDocument::metadata().setMetaFieldFromValue()`.
- Freeze the MutableDocument and return a GetNextResult using the frozen document.
- depends on
-
SERVER-113899 Extend MongoExtensionGetNextResult with metadataReads/metadataWrites
-
- Closed
-
-
SERVER-113901 Add upstreamMetadata field to QueryExecutionContextBase
-
- Closed
-
-
SERVER-113904 Add and initialize providedMetadataFields in ExtensionStage
-
- Closed
-
-
SERVER-114029 Extend MongoExtensionGetNextResult to include metadata
-
- Closed
-
- related to
-
SERVER-114986 Add DocumentMetadataFields equality comparator
-
- In Code Review
-