ConeyLiu commented on code in PR #3136: URL: https://github.com/apache/parquet-java/pull/3136#discussion_r1928349167
########## parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java: ########## @@ -589,7 +589,12 @@ private static final ParquetMetadata readFooter( long fileMetadataLengthIndex = fileLen - magic.length - FOOTER_LENGTH_SIZE; LOG.debug("reading footer index at {}", fileMetadataLengthIndex); f.seek(fileMetadataLengthIndex); - int fileMetadataLength = readIntLittleEndian(f); + long readFileMetadataLength = readIntLittleEndian(f) & 0xFFFFFFFFL; Review Comment: read as a unsigned int -- 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