We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When unwrap is enabled all fields of the TestProto3.OneOfTestMessage will be required.
TestProto3.OneOfTestMessage
message TestProto3.OneOfTestMessage { required int32 first = 1; required int32 second = 2; }
parquet-java/parquet-protobuf/src/test/resources/TestProto3.proto
Line 116 in 73a4430
This will never work but tests are missing for unwrap of TestProto3.OneOfTestMessage
The required repetition is added here:
parquet-java/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoSchemaConverter.java
Line 278 in 73a4430
This could be caught early by adding withValidation(true) here:
withValidation(true)
parquet-java/parquet-protobuf/src/test/java/org/apache/parquet/proto/TestUtils.java
Line 221 in 73a4430
If validation is disabled it will fail when trying to read one of the non-existing fields in the oneof.
oneof
Is there really a need for setting all primitive fields in unwrap to required?
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug, including details regarding any error messages, version, and platform.
When unwrap is enabled all fields of the
TestProto3.OneOfTestMessage
will be required.parquet-java/parquet-protobuf/src/test/resources/TestProto3.proto
Line 116 in 73a4430
This will never work but tests are missing for unwrap of
TestProto3.OneOfTestMessage
The required repetition is added here:
parquet-java/parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoSchemaConverter.java
Line 278 in 73a4430
This could be caught early by adding
withValidation(true)
here:parquet-java/parquet-protobuf/src/test/java/org/apache/parquet/proto/TestUtils.java
Line 221 in 73a4430
If validation is disabled it will fail when trying to read one of the non-existing fields in the
oneof
.Is there really a need for setting all primitive fields in unwrap to required?
Component(s)
No response
The text was updated successfully, but these errors were encountered: