emkornfield commented on a change in pull request #8629:
URL: https://github.com/apache/arrow/pull/8629#discussion_r520734627



##########
File path: cpp/src/parquet/column_reader.cc
##########
@@ -442,8 +442,10 @@ std::shared_ptr<Page> SerializedPageReader::NextPage() {
                           header.repetition_levels_byte_length, 
&levels_byte_len)) {
         throw ParquetException("Levels size too large (corrupt file?)");
       }
-      page_buffer = DecompressIfNeeded(std::move(page_buffer), compressed_len,
-                                       uncompressed_len, levels_byte_len);
+      if (is_compressed) {
+        page_buffer = DecompressIfNeeded(std::move(page_buffer), 
compressed_len,

Review comment:
       could you add a comment here.  The logic reads strangely to me because I 
would assume is_compressed is somehow accounted for in DecompressIfNeeded.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to