-
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
Once the appropriate changes have been made to the API and handle, DocumentSourceExtensionOptimizable should override getDependencies().
The pseudocode for DocumentSourceExtensionOptimizable::getDependencies() is as follows:
- Call logicalStageHandle->getProperties()
- Parse out requiredMetadataFields, providedMetadataFields, and preservesUpstreamMetadata
- For each field in requiredMetadataFields:
- Check if the metadata field is known to the server
- If so, call deps->setNeedsMetadata(), adding the field
- If not, uassert
- Check if the metadata field is known to the server
- If preservesUpstreamMetadata is false, clear metadataAvailable.
- For each field in providedMetadataFields:
- Check if the metadata field is known to the server
- If so, call deps->setMetadataAvailable(), adding the field
- If not, uassert
- Check if the metadata field is known to the server
This ticket should implement this logic in `DocumentSourceExtensionOptimizable` and update the corresponding unit test. This ticket should not create a full e2e test for an extension.
- depends on
-
SERVER-110261 Update MongoExtensionLogicalAggStage to support reporting metadata
-
- Closed
-
- is depended on by
-
SERVER-114031 Add e2e tests for extension metadata
-
- In Progress
-