mwong38 commented on code in PR #3113: URL: https://github.com/apache/parquet-java/pull/3113#discussion_r1953119337
########## parquet-protobuf/src/main/java/org/apache/parquet/proto/ProtoSchemaConverter.java: ########## @@ -260,7 +260,7 @@ private <T> Builder<? extends Builder<?, GroupBuilder<T>>, GroupBuilder<T>> addF return builder.primitive(INT32, getRepetition(descriptor)); } if (messageType.equals(UInt32Value.getDescriptor())) { - return builder.primitive(INT64, getRepetition(descriptor)); + return builder.primitive(INT32, getRepetition(descriptor)); Review Comment: I think this is fine and a good way to test it. Java doesn't support unsigned int, so if you're forced to convert to signed, this is the best way. The underlying 32-bit machine representation will almost certainly be the same. (I say "almost" baring whatever little/big endian weirdness -- but even then the conversion to/from Protobuf should be consistent.) So I think we're good. -- 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: issues-unsubscr...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@parquet.apache.org For additional commands, e-mail: issues-h...@parquet.apache.org