You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Weston Pace (Jira)" <ji...@apache.org> on 2021/03/23 12:15:00 UTC
[jira] [Created] (ARROW-12054) [C++] Parquet statistics incorrect
for decimal128
Weston Pace created ARROW-12054:
-----------------------------------
Summary: [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++
Reporter: Weston Pace
{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)