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

[Python] pyarrow array creation for specific set of numpy scalars fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.1
    • 2.0.0
    • Python
    • conda

    Description

      While creating array from a list of numpy scalars, pyarrow fails with message 'Integer scalar type not recognized', details below 

      >>> import pyarrow as pa >>> import numpy as np
      >>> pa.array([np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)])
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "pyarrow/array.pxi", line 269, in pyarrow.lib.array
        File "pyarrow/array.pxi", line 38, in pyarrow.lib._sequence_to_array
        File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
      pyarrow.lib.ArrowInvalid: Integer scalar type not recognized
      

       

      Attachments

        Issue Links

          Activity

            People

              arw2019 Andrew Wieteska
              rgsl888 Ramakrishna Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 40m
                  40m