ttencate opened a new pull request, #6271:
URL: https://github.com/apache/arrow-rs/pull/6271

   The compression level is only used during compression, not decompression, 
and isn't actually stored in the metadata. Printing it is misleading.
   
   # Which issue does this PR close?
   
   Closes #6270.
   
   # Rationale for this change
    
   Theoretically, there should be a `Compression` enum that doesn't store the 
level, but that doesn't seem worth the trouble and API breakage.
   
   Instead, I just added a method `codec_to_string()` that returns the `Debug` 
output up to the first `(`. This is easier to maintain and hopefully less 
error-prone than adding a `match`. It's less efficient, but efficiency doesn't 
matter much here.
   
   # Are there any user-facing changes?
   
   No. The output of `print_parquet_metadata` is neither documented nor tested, 
and should therefore not be considered stable.


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

Reply via email to