Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5514

[C++] Printer for uint64 shows wrong values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • C++

    Description

      From the example in ARROW-5430:

      In [16]: pa.array([14989096668145380166, 15869664087396458664], type=pa.uint64())                                                                                                                                   
      Out[16]: 
      <pyarrow.lib.UInt64Array object at 0x7ff7c51bdf48>
      [
        -3457647405564171450,
        -2577079986313092952
      ]
      

      I think the actual conversion is correct, and it's only the printer that is going wrong, as to_numpy gives the correct values:

      In [17]: pa.array([14989096668145380166, 15869664087396458664], type=pa.uint64()).to_numpy()                                                                                                                        
      Out[17]: array([14989096668145380166, 15869664087396458664], dtype=uint64)
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h