jonashaag commented on issue #5270:
URL: https://github.com/apache/arrow-rs/issues/5270#issuecomment-1873943429
```
In [3]:
pq.ParquetFile("/tmp/no_stats.parquet").metadata.row_group(0).column(0)
Out[3]:
<pyarrow._parquet.ColumnChunkMetaData object at 0x105bf7100>
...
statistics:
<pyarrow._parquet.Statistics object at 0x125cf6200>
has_min_max: False
min: None
max: None
...
In [5]: table = pq.read_table("/tmp/no_stats.parquet")
# Re-write table with PyArrow
In [6]: with pq.ParquetWriter("/tmp/with_stats.parquet",
schema=table.schema) as w:
...: w.write_table(table)
...:
In [7]:
pq.ParquetFile("/tmp/with_stats.parquet").metadata.row_group(0).column(0)
Out[7]:
<pyarrow._parquet.ColumnChunkMetaData object at 0x105660680>
...
statistics:
<pyarrow._parquet.Statistics object at 0x125cf5da0>
has_min_max: True
min: 01
max: 01
...
```
[no_stats.parquet.zip](https://github.com/apache/arrow-rs/files/13809687/no_stats.parquet.zip)
--
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]