From 4b93136dcec7b8448c79a065e4d57077cded65ca Mon Sep 17 00:00:00 2001 From: Arttu Voutilainen Date: Mon, 10 Jun 2024 17:10:18 +0200 Subject: [PATCH 1/2] feat: add SubqueryAliasRel --- proto/substrait/algebra.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proto/substrait/algebra.proto b/proto/substrait/algebra.proto index ae9725b0a..51cac43aa 100644 --- a/proto/substrait/algebra.proto +++ b/proto/substrait/algebra.proto @@ -144,6 +144,14 @@ message ReadRel { } } +// (Re)qualify column names in a relation. If the system does not need qualified names, this can be ignored. +message SubqueryAliasRel { + RelCommon common = 1; + Rel input = 2; + repeated string names = 3; + substrait.extensions.AdvancedExtension advanced_extension = 10; +} + // This operator allows to represent calculated expressions of fields (e.g., a+b). Direct/Emit are used to represent classical relational projections message ProjectRel { RelCommon common = 1; @@ -434,6 +442,7 @@ message Rel { JoinRel join = 6; ProjectRel project = 7; SetRel set = 8; + SubqueryAliasRel subqueryAlias = 22; ExtensionSingleRel extension_single = 9; ExtensionMultiRel extension_multi = 10; ExtensionLeafRel extension_leaf = 11; From 526019a8fe5729a83108ba27d6359acadb29481c Mon Sep 17 00:00:00 2001 From: Arttu Voutilainen Date: Mon, 10 Jun 2024 21:24:03 +0200 Subject: [PATCH 2/2] fix: rename to fit snake case --- proto/substrait/algebra.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/substrait/algebra.proto b/proto/substrait/algebra.proto index 51cac43aa..7212ab074 100644 --- a/proto/substrait/algebra.proto +++ b/proto/substrait/algebra.proto @@ -442,7 +442,7 @@ message Rel { JoinRel join = 6; ProjectRel project = 7; SetRel set = 8; - SubqueryAliasRel subqueryAlias = 22; + SubqueryAliasRel subquery_alias = 22; ExtensionSingleRel extension_single = 9; ExtensionMultiRel extension_multi = 10; ExtensionLeafRel extension_leaf = 11;