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

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

Joris Van den Bossche created ARROW-5514:
--------------------------------------------

             Summary: [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


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)