Skip to content

docs: clarify output schema handling for extension relations#1018

Merged
benbellick merged 1 commit intomainfrom
benbellick/extension-relation-schema-docs
May 6, 2026
Merged

docs: clarify output schema handling for extension relations#1018
benbellick merged 1 commit intomainfrom
benbellick/extension-relation-schema-docs

Conversation

@benbellick
Copy link
Copy Markdown
Member

@benbellick benbellick commented Mar 23, 2026

For standard relations, a consumer can derive the output schema from the relation definition (e.g., Project appends expression columns to the input schema). For extension relations, this is clearly impossible. I thought it would be nice to explicitly document that this needs to be handled by the extension authors.

The motivating example here is a custom Unnest operator we have (via an ExtensionSingleRel). There is nothing in core substrait enforcing whether the unnested column is appended to the schema or something else.


Note: This PR was developed with AI assistance. All changes have been reviewed, and I take full responsibility for this contribution.


This change is Reviewable

@benbellick benbellick marked this pull request as ready for review March 23, 2026 20:10
@benbellick
Copy link
Copy Markdown
Member Author

With 2 votes (including myself) I am going to go ahead and merge this one. Thanks!

@benbellick benbellick merged commit cb57039 into main May 6, 2026
19 checks passed
@benbellick benbellick deleted the benbellick/extension-relation-schema-docs branch May 6, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants