Skip to content

Commit

Permalink
feat: add optional metadata containing field names to RelCommon (#696)
Browse files Browse the repository at this point in the history
This PR introduces a new metadata field in the `RelCommon` hint definition which contains
the output field names for any relation. This enables full resolution roundtrip for `Expand` in the `spark` module.

Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>
  • Loading branch information
andrew-coleman authored Sep 11, 2024
1 parent 67f93b6 commit 5a73281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proto/substrait/algebra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ message RelCommon {
// Name (alias) for this relation. Can be used for e.g. qualifying the relation (see e.g.
// Spark's SubqueryAlias), or debugging.
string alias = 3;
// Assigns alternative output field names for any relation. Equivalent to the names field
// in RelRoot but applies to the output of the relation this RelCommon is attached to.
repeated string output_names = 4;

substrait.extensions.AdvancedExtension advanced_extension = 10;

Expand Down

0 comments on commit 5a73281

Please sign in to comment.