-
Notifications
You must be signed in to change notification settings - Fork 8
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 validate function for a substrait::Plan
message
#281
Changes from all commits
faa6d78
652a4dc
4b9ec97
f2860cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,17 @@ TEST(BasicTest, BasicTest) { | |
EXPECT_EQ(strlen(reinterpret_cast<const char *>(data_ptr)), data_size); | ||
EXPECT_EQ( | ||
reinterpret_cast<const char *>(data_ptr), | ||
std::string("Error at plan: failed to parse as substrait.Plan: " | ||
"failed to decode Protobuf message: " | ||
"invalid wire type value: 7 (code 1001) (code 1001)\n" | ||
"Error at plan: failed to parse as substrait.PlanVersion: " | ||
"failed to decode Protobuf message: " | ||
"invalid wire type value: 7 (code 1001) (code 1001)\n")); | ||
std::string( | ||
"Info at plan: this version of the validator is EXPERIMENTAL. " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that before the |
||
"Please report issues via " | ||
"https://github.com/substrait-io/substrait-validator/issues/new " | ||
"(code 0999)\n" | ||
"Error at plan: failed to parse as substrait.Plan: " | ||
"failed to decode Protobuf message: " | ||
"invalid wire type value: 7 (code 1001) (code 1001)\n" | ||
"Error at plan: failed to parse as substrait.PlanVersion: " | ||
"failed to decode Protobuf message: " | ||
"invalid wire type value: 7 (code 1001) (code 1001)\n")); | ||
|
||
// Free the buffer. | ||
substrait_validator_free_exported(data_ptr); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was outside the intent of this PR, but after running into this error and attempting to reproduce locally, I found this option helped. I know very little about CMake, so any recommendations here welcome 🙇