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

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

    [ https://issues.apache.org/jira/browse/ARROW-5514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16856493#comment-16856493 ] 

Antoine Pitrou commented on ARROW-5514:
---------------------------------------

This should be simple enough to fix if you want to get acquainted with the C++ codebase. You should probably take a look in {{pretty_print.cc}}. Tests must be added to {{pretty_print-test.cc}}.

> [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
>            Priority: Minor
>
> 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)