You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++][Parquet] Support min_value and max_value Statistics #14870
Currently Parquet C++ supports only the legacy fields min and max. We should add support for reading and writing the newer ones, with the appropriate semantics on the write path.
Activity
pitrou commentedon Dec 7, 2022
cc @fatemehp @wgtmac
wgtmac commentedon Dec 7, 2022
AFAIK, the statistics in the data page header has been deprecated after column index (part of the page index) has been introduced.
CMIW, parquet cpp is in good state with the parquet spec:
min_value&max_valuefrom the thrift object if available: https://github.com/apache/arrow/blob/master/cpp/src/parquet/metadata.cc#L97min_valueandminfor backward-compatibility: https://github.com/apache/arrow/blob/master/cpp/src/parquet/thrift_internal.h#L292wgtmac commentedon Dec 7, 2022
The confusing thing is that both
StatisticsandEncodedStatisticsuseminandmaxfor both old and new meanings.pitrou commentedon Dec 7, 2022
Uh, I had missed that. I agree that things seem fine.
wgtmac commentedon Feb 9, 2023
@pitrou Could you please reopen this issue? I found that there is a missing part: The C++ parquet reader does not parse column statistics correctly here: https://github.com/apache/arrow/blob/master/cpp/src/parquet/column_reader.cc#L214
It should check __isset.min_value and __isset.max_value first which is similar to parquet-mr: https://github.com/apache/parquet-mr/blob/5290bd5e0ee5dc30db0576e2bfc6eea335c465cf/parquet-hadoop/src/main/java/org/apache/parquet/format/converter/ParquetMetadataConverter.java#L797
apacheGH-14870: [C++][Parquet] Fix parsing stats from min_value/max_v…
pitrou commentedon Feb 10, 2023
@wgtmac You should probably open a new issue instead.