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

[Python] Decimal arrays cannot be constructed from Python lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • Python
    • None

    Description

      In [14]: pa.array([Decimal('1')])
      ---------------------------------------------------------------------------
      ArrowInvalid                              Traceback (most recent call last)
      <ipython-input-14-458b6561866e> in <module>()
      ----> 1 pa.array([Decimal('1')])
      
      array.pxi in pyarrow.lib.array()
      
      array.pxi in pyarrow.lib._sequence_to_array()
      
      error.pxi in pyarrow.lib.check_status()
      
      ArrowInvalid: Error inferring Arrow data type for collection of Python objects. Got Python object of type Decimal but can only handle these types: bool, float, integer, date, datetime, bytes, unicode
      

      Attachments

        Activity

          People

            cpcloud Phillip Cloud
            cpcloud Phillip Cloud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: