tddfan opened a new pull request, #1102: URL: https://github.com/apache/parquet-mr/pull/1102
If Parquet has any field which has been removed from the schema and Parquet to Proto conversion happens, it errors out due to Unknown fields. There could be some scenarios that we want to still convert PARQUET into the target proto schema object which has lesser fields. In this change using the ProtoParquetReader and specifying "ignoreUnknownFields" as an argument, the conversion can still be done which would ignore fields it can't convert and not error out. Similar functionality exist in https://github.com/protocolbuffers/protobuf/blob/main/java/util/src/main/java/com/google/protobuf/util/JsonFormat.java with field "ignoringUnknownFields" Make sure you have checked all steps below. Tests [ SS] My PR adds more cases to the unit test ProtoSchemaConverterTest to cover for ignoreUnknownFields: -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
