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

[Python] Decimal arrays cannot be constructed from Python lists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Python
    • Labels:
      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

            • Assignee:
              cpcloud Phillip Cloud
              Reporter:
              cpcloud Phillip Cloud
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: