From cd0336548c9b7222f96693d35f32447e0c594f0e Mon Sep 17 00:00:00 2001 From: andrew-coleman Date: Wed, 28 Aug 2024 11:36:43 +0100 Subject: [PATCH] feat: add hint containing field names to RelCommon Allows the output field names of any relation to be set or reset Signed-off-by: andrew-coleman Signed-off-by: Andrew Coleman --- proto/substrait/algebra.proto | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/substrait/algebra.proto b/proto/substrait/algebra.proto index 08f775a8f..eed7bcc79 100644 --- a/proto/substrait/algebra.proto +++ b/proto/substrait/algebra.proto @@ -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;