iemejia commented on code in PR #3731:
URL: https://github.com/apache/parquet-java/pull/3731#discussion_r3901898450


##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroRecordConverter.java:
##########
@@ -355,7 +355,7 @@ private static Converter newConverter(
     LogicalType logicalType = schema.getLogicalType();
     Conversion<?> conversion;
 
-    if (knownClass != null) {
+    if (knownClass != null && logicalType != null) {

Review Comment:
   Good catch — this change wasn't actually necessary. As Ryan noted, it's no 
longer needed thanks to 
[AVRO-4321](https://issues.apache.org/jira/browse/AVRO-4321). I've reverted 
this line back to the original. Thanks!



##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroRecordConverter.java:
##########
@@ -355,7 +355,7 @@ private static Converter newConverter(
     LogicalType logicalType = schema.getLogicalType();
     Conversion<?> conversion;
 
-    if (knownClass != null) {
+    if (knownClass != null && logicalType != null) {

Review Comment:
   Reverted, thanks! Confirmed the `parquet-avro` test suite passes (408 tests) 
with Avro 1.12.2 without this change.



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