[
https://issues.apache.org/jira/browse/PARQUET-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16332992#comment-16332992
]
Jim Pivarski commented on PARQUET-1199:
---------------------------------------
I happen to have appropriate test files. The following is correct output.
[https://github.com/diana-hep/oamap/blob/master/tests/samples/record-primitives.parquet
https://github.com/diana-hep/oamap/blob/master/tests/samples/nullable-record-primitives.parquet
|https://github.com/diana-hep/oamap/blob/master/tests/samples/record-primitives.parquet]
The following is correct output from pyarrow 0.8.0.
{{>>> import pyarrow.parquet}}
{{>>> f1 = pyarrow.parquet.read_table("record-primitives.parquet",
columns=["u1", "u4"])}}
{{>>> f2 = pyarrow.parquet.read_table("nullable-record-primitives.parquet",
columns=["u1", "u4"])}}
{{>>> f1[0]}}
{{<pyarrow.lib.Column object at 0x7ec13d01ea50>}}
{{chunk 0: <pyarrow.lib.BooleanArray object at 0x7ec13d09a3c0>}}
{{[}}
{{ False,}}
{{ True,}}
{{ True,}}
{{ False,}}
{{ False}}
{{]}}
{{>>> f1[1]}}
{{<pyarrow.lib.Column object at 0x7ec1508546c0>}}
{{chunk 0: <pyarrow.lib.Int32Array object at 0x7ec13d09a0a8>}}
{{[}}
{{ 1,}}
{{ 2,}}
{{ 3,}}
{{ 4,}}
{{ 5}}
{{]}}
{{>>> f2[0]}}
{{<pyarrow.lib.Column object at 0x7ec13d01e960>}}
{{chunk 0: <pyarrow.lib.BooleanArray object at 0x7ec13d09a3c0>}}
{{[}}
{{ NA,}}
{{ True,}}
{{ NA,}}
{{ False,}}
{{ NA}}
{{]}}
{{>>> f2[1]}}
{{<pyarrow.lib.Column object at 0x7ec1508546c0>}}
{{chunk 0: <pyarrow.lib.Int32Array object at 0x7ec13d09a0a8>}}
{{[}}
{{ 1,}}
{{ NA,}}
{{ NA,}}
{{ NA,}}
{{ 5}}
{{]}}
> [C++] Support writing (and test reading) boolean values with RLE encoding
> -------------------------------------------------------------------------
>
> Key: PARQUET-1199
> URL: https://issues.apache.org/jira/browse/PARQUET-1199
> Project: Parquet
> Issue Type: New Feature
> Components: parquet-cpp
> Reporter: Wes McKinney
> Priority: Major
> Fix For: cpp-1.5.0
>
>
> This is supported by the Parquet specification, we should ensure that we are
> able to read such data
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)