You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "droher (via GitHub)" <gi...@apache.org> on 2023/05/25 16:02:05 UTC

[GitHub] [arrow] droher commented on issue #35726: [Python] [Parquet] Compression degradation when column type changed from INT64 to INT32

droher commented on issue #35726:
URL: https://github.com/apache/arrow/issues/35726#issuecomment-1563154034

   Thanks for the help - here's the metadata output for INT32:
   
   ```
     file_offset: 58502786
     file_path: 
     physical_type: INT32
     num_values: 16602160
     path_in_schema: event_key
     is_stats_set: True
     statistics:
       <pyarrow._parquet.Statistics object at 0x102d4d440>
         has_min_max: True
         min: 1
         max: 195205394
         null_count: 0
         distinct_count: 0
         num_values: 16602160
         physical_type: INT32
         logical_type: None
         converted_type (legacy): NONE
     compression: ZSTD
     encodings: ('RLE_DICTIONARY', 'PLAIN', 'RLE', 'PLAIN')
     has_dictionary_page: True
     dictionary_page_offset: 2690531
     data_page_offset: 3599395
     total_compressed_size: 55812255
     total_uncompressed_size: 67036335
   ```
   
   And for INT64:
   ```
     file_offset: 20698306
     file_path: 
     physical_type: INT64
     num_values: 16602160
     path_in_schema: event_key
     is_stats_set: True
     statistics:
       <pyarrow._parquet.Statistics object at 0x102d4c540>
         has_min_max: True
         min: 1
         max: 195205394
         null_count: 0
         distinct_count: 0
         num_values: 16602160
         physical_type: INT64
         logical_type: None
         converted_type (legacy): NONE
     compression: ZSTD
     encodings: ('RLE_DICTIONARY', 'PLAIN', 'RLE', 'PLAIN')
     has_dictionary_page: True
     dictionary_page_offset: 2690531
     data_page_offset: 2831269
     total_compressed_size: 18007775
     total_uncompressed_size: 133123584
   ```
   
   For context, the reason I want the smaller data type is for an accurate schema for downstream systems - I don't need/expect significantly better compression with the different type within the file itself.


-- 
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: github-unsubscribe@arrow.apache.org

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