Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add output_schema to ExpandRel message #661

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions proto/substrait/algebra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ message ExchangeRel {
message ExpandRel {
RelCommon common = 1;
Rel input = 2;
// The columns emitted as a result of applying the Expand fields
NamedStruct output_schema = 3;
// There should be one definition here for each input field. Any fields beyond the provided
// definitions will be emitted as is (as if a consistent_field record with an identity
// expression was provided).
Expand Down
9 changes: 5 additions & 4 deletions site/docs/relations/physical_relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,11 @@ The expand operation creates duplicates of input records based on the Expand Fie

### Expand Properties

| Property | Description | Required |
| --------- |--------------------------------------| -------- |
| Input | The relational input. | Required |
| Direct Fields | Expressions describing the output fields. These refer to the schema of the input. Each Direct Field must be an expression or a Switching Field | Required |
| Property | Description | Required |
|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------| -------- |
| Input | The relational input. | Required |
| Output Schema | The schema describing the columns emitted as a result of applying the field expressions. | Required |
| Direct Fields | Expressions describing the output fields. These refer to the schema of the input. Each Direct Field must be an expression or a Switching Field | Required |

### Switching Field Properties

Expand Down
Loading