Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: anchor for non-ordinal reference to PlanRel
This adds an "anchor" to `PlanRel` that can be referenced from a `ReferenceRel`. This anchor and reference relationship provides a non-ordinal method for identifying and accessing a "subtree" or sub-graph. This commit leaves in the original `subtree_ordinal` attribute since it seems a (mildly) more performant method for referencing a subtree, but also since it is still relevant in the typical case. The new anchor improves cases where multiple plans are merged and at least one already contains a `ReferenceRel`. It is expected that only one of `subtree_ordinal` or `subtree_reference` will be used, however I don't see a good reason to enforce the use of only one, so I did not group the attributes in a `oneof` constraint. Issue: #725
- Loading branch information