nastra commented on code in PR #3793:
URL: https://github.com/apache/parquet-java/pull/3793#discussion_r4005485974


##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroIndexedRecordConverter.java:
##########
@@ -126,16 +126,18 @@ private static <T> Class<T> getDatumClass(GenericData 
model, Schema schema) {
 
   private Schema.Field getAvroField(String parquetFieldName) {
     Schema.Field avroField = avroSchema.getField(parquetFieldName);
+    if (avroField != null) {

Review Comment:
   this also aligns with how `AvroRecordConverter` does it. I also checked 
other places in the codebase and that seems to be the only one affected



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to