Skip to content

feat: add advanced_extension to ExpandRel - #1167

Merged
nielspardon merged 1 commit into
substrait-io:mainfrom
nielspardon:feat/expandrel-advanced-extension
Aug 7, 2026
Merged

feat: add advanced_extension to ExpandRel#1167
nielspardon merged 1 commit into
substrait-io:mainfrom
nielspardon:feat/expandrel-advanced-extension

Conversation

@nielspardon

@nielspardon nielspardon commented Aug 7, 2026

Copy link
Copy Markdown
Member

Every relation in algebra.proto carries a rel-level substrait.extensions.AdvancedExtension advanced_extension field (at field number 10) — except ExpandRel. Advanced extensions are intended to be available at multiple levels of messages within a plan, so this asymmetry looks like an oversight rather than an intentional restriction: there is no reason a producer should be able to attach implementation-specific data to a Project, Aggregate, Join, Sort, Fetch, etc. but not to an Expand.

This PR adds advanced_extension = 10 to ExpandRel, matching the placement and field number used by the other relations. Field 10 was previously unused by ExpandRel, so the change is purely additive — plans that do not set the field are unaffected, and it does not alter the behavior of any previously legal plan.


This change is Reviewable

Every relation in algebra.proto carries a rel-level
`substrait.extensions.AdvancedExtension advanced_extension` field
(at field number 10) except ExpandRel. Advanced extensions are meant to
be available at multiple levels of messages within a plan, so this
asymmetry looks like an oversight rather than an intentional restriction.

Add `advanced_extension = 10` to ExpandRel, matching the placement and
field number used by every other relation. Field 10 was previously
unused by ExpandRel, so this is purely additive: plans that do not set
the field are unaffected.
@nielspardon nielspardon added the apache-gluten Upstreaming features from the Apache Gluten Substrait fork label Aug 7, 2026
@nielspardon
nielspardon merged commit 4d5d57a into substrait-io:main Aug 7, 2026
16 checks passed
@nielspardon
nielspardon deleted the feat/expandrel-advanced-extension branch August 7, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apache-gluten Upstreaming features from the Apache Gluten Substrait fork

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants