ConeyLiu commented on code in PR #3148: URL: https://github.com/apache/parquet-java/pull/3148#discussion_r1945914197
########## parquet-column/src/main/java/org/apache/parquet/column/page/DataPageV2.java: ########## @@ -163,6 +170,33 @@ public DataPageV2( this.isCompressed = isCompressed; } + public DataPageV2( + int rowCount, + int nullCount, + int valueCount, + BytesInput repetitionLevels, + BytesInput definitionLevels, + Encoding dataEncoding, + BytesInput data, + int compressedSize, + int uncompressedSize, + Statistics<?> statistics, + boolean isCompressed) { + super(compressedSize, uncompressedSize, valueCount); + if (!isCompressed && compressedSize != 0) { + throw new IllegalArgumentException("compressedSize must be 0 if page is not compressed"); + } Review Comment: So we only should set the `is_compressed` as false and don't care about the `compressed_size` for this case? -- 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