gszadovszky commented on code in PR #3272:
URL: https://github.com/apache/parquet-java/pull/3272#discussion_r2309503562
##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroSchemaConverter.java:
##########
@@ -150,16 +151,23 @@ public MessageType convert(Schema avroSchema) {
if (!avroSchema.getType().equals(Schema.Type.RECORD)) {
throw new IllegalArgumentException("Avro schema must be a record.");
}
- return new MessageType(avroSchema.getFullName(),
convertFields(avroSchema.getFields(), ""));
+ return new MessageType(
+ avroSchema.getFullName(),
+ convertFields(avroSchema.getFields(), "", new IdentityHashMap<Schema,
Integer>()));
Review Comment:
I'm sorry I was wrong. Your choice of using `IdentityHashMap` was the best
approach. (Unfortunately, there is no such thing in standard Java as
`IdentityHashSet`.)
Could you change it back using `IdentityHashMap`? (Maybe with the value type
`Void` and setting `null` values to be clear we don't actually use them.)
--
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]