-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Fully Compatible
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, we only pass the viewName across the API boundary for extension stages as that's needed by the $vectorSearchExtension. We originally decided not to pass the viewPipeline across the boundary as it's a more complex structure and can be applied to DocumentSourceInternalSearchIdLookup server-side.
After turning on featureFlagExtensionViewsAndUnionWith, we discovered that we lost view pipeline validation that was previously handled by DocumentSourceVectorSearch (specifically, mongot stages are disallowed in the view pipeline). While we could check whether an extension stage is an ExtensionVectorSearch stage in DocumentSourceExtensionOptimizable, this is brittle and should ideally be handled by the extension itself. We should consider passing the viewPipeline across the extension boundary so that the extension can take care of validation if it needs it.
- is depended on by
-
SERVER-120937 Decouple non-const bindViewInfo() from const ViewPolicy callback in extensions
-
- Closed
-
-
SERVER-120396 Restart vector_search_extension_* passthrough tests
-
- Needs Scheduling
-
- is related to
-
SERVER-118709 Investigate failing views and $unionWith tests
-
- Closed
-
- related to
-
SERVER-121046 Re-enable mongot_stage_in_view_definition.js in fully-enabled extension suites
-
- Open
-