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 advanced extension field to DdlRel, WriteRel, and UpdateRel #766

Merged
merged 11 commits into from
Jan 29, 2025
7 changes: 7 additions & 0 deletions proto/substrait/algebra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ message DdlRel {
// An operation that removes an object from the system (without throwing an exception if the object did not exist)
DDL_OP_DROP_IF_EXIST = 5;
}

substrait.extensions.AdvancedExtension advanced_extension = 9;

//TODO add PK/constraints/indexes/etc..?
}

Expand Down Expand Up @@ -710,6 +713,8 @@ message WriteRel {
// subplans in the body of the Rel input) and return those with anounter PlanRel.relations.
OUTPUT_MODE_MODIFIED_RECORDS = 2;
}

substrait.extensions.AdvancedExtension advanced_extension = 9;
}

// The operator that modifies the columns of a table
Expand All @@ -728,6 +733,8 @@ message UpdateRel {
Expression transformation = 1; // the transformation to apply
int32 column_target = 2; // index of the column to apply the transformation to
}

substrait.extensions.AdvancedExtension advanced_extension = 5;
}

// A base table. The list of string is used to represent namespacing (e.g., mydb.mytable).
Expand Down
Loading