Repository navigation
[Fusion] Fix deferred plans rejecting nested lookups below the defer anchor - #10647
Merged
Merged
Conversation
…anchor A deferred selection such as `... @defer { related { name } }` on `products` plans an incremental step that fetches `related { id }` and a second lookup that reads that `id` at `$.products.related`. The step was classified as a pure requirement producer because its only leaf field was consumed by a dependent, so the planner tried to lift the nested requirement to the parent scope and threw "requirement path lies outside the defer's anchor". A dependent's requirement now only counts as consuming a producer field when it sits at or above the defer anchor, so the step stays in the incremental plan and chains the nested lookup there. The descriptor also recorded every remaining step's requirements as parent-scope requirements. It now records only the requirements of steps that depend on the parent scope, matching what the executor collects. Bumps OperationPlanner.Version to 2.3.0.
Contributor
Patch coverage100.0% of changed lines covered (6/6)
Project coverage: 59.1% (312899/529178 lines) |
This was referenced Oct 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.