Skip to content

Commit

Permalink
feat: add PlanVersion message
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanstraten committed Oct 3, 2022
1 parent 838ee20 commit 9b1dfba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proto/substrait/plan.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ message Plan {
repeated string expected_type_urls = 5;
}

// This message type can be used to deserialize only the version of a Substrait
// Plan message. This prevents deserialization errors when there were breaking
// changes between the Substrait version of the tool that produced the plan and
// the Substrait version used to deserialize it, such that a consumer can emit
// a more helpful error message in this case.
message PlanVersion {
Version version = 6;
}

message Version {
// Substrait version number.
uint32 major = 1;
Expand Down

0 comments on commit 9b1dfba

Please sign in to comment.