[
https://issues.apache.org/jira/browse/ARROW-12054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17306998#comment-17306998
]
Antoine Pitrou commented on ARROW-12054:
----------------------------------------
cc [~emkornfield]
> [C++] Parquet statistics incorrect for decimal128
> -------------------------------------------------
>
> Key: ARROW-12054
> URL: https://issues.apache.org/jira/browse/ARROW-12054
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 3.0.0
> Reporter: Weston Pace
> Priority: Major
>
> {code:java}
> import decimal
> import pyarrow as pa
> import pyarrow.parquet as pq
> dtype = pa.decimal128(12, 4)
> ctx = decimal.Context(prec=12)
> arr = pa.array([0, ctx.create_decimal(3.99)], dtype)
> table = pa.Table.from_arrays([arr], ["foo"])
> pq.write_table(table, '/tmp/foo.pq')
> meta = pq.read_metadata('/tmp/foo.pq')
> print(meta.row_group(0).column(0).statistics)
> {code}
> Expected 0 to be the min and 3.99 to be the max but got the reverse.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)