You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/06/13 14:04:00 UTC

[jira] [Resolved] (ARROW-5514) [C++] Printer for uint64 shows wrong values

     [ https://issues.apache.org/jira/browse/ARROW-5514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-5514.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 0.14.0

Issue resolved by pull request 4545
[https://github.com/apache/arrow/pull/4545]

> [C++] Printer for uint64 shows wrong values
> -------------------------------------------
>
>                 Key: ARROW-5514
>                 URL: https://issues.apache.org/jira/browse/ARROW-5514
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 0.13.0
>            Reporter: Joris Van den Bossche
>            Assignee: Antoine Pitrou
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.14.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> From the example in ARROW-5430:
> {code}
> In [16]: pa.array([14989096668145380166, 15869664087396458664], type=pa.uint64())                                                                                                                                   
> Out[16]: 
> <pyarrow.lib.UInt64Array object at 0x7ff7c51bdf48>
> [
>   -3457647405564171450,
>   -2577079986313092952
> ]
> {code}
> I _think_ the actual conversion is correct, and it's only the printer that is going wrong, as {{to_numpy}} gives the correct values:
> {code}
> In [17]: pa.array([14989096668145380166, 15869664087396458664], type=pa.uint64()).to_numpy()                                                                                                                        
> Out[17]: array([14989096668145380166, 15869664087396458664], dtype=uint64)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)