Uploaded image for project: 'pymongoarrow'
  1. pymongoarrow
  2. ARROW-138

Decimal128 extension type is broken

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Attempting to use the Decimal128 type in a schema results in the following error:

      Traceback (most recent call last):
        File "/Users/julius/Work/mongo-arrow/bindings/python/test/test_arrow.py", line 332, in test_csv
          _, data = self._create_data()
        File "/Users/julius/Work/mongo-arrow/bindings/python/test/test_arrow.py", line 253, in _create_data
          data = Table.from_pydict(
        File "pyarrow/table.pxi", line 3643, in pyarrow.lib.Table.from_pydict
        File "pyarrow/table.pxi", line 5186, in pyarrow.lib._from_pydict
        File "pyarrow/array.pxi", line 350, in pyarrow.lib.asarray
        File "pyarrow/array.pxi", line 320, in pyarrow.lib.array
        File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
        File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
        File "pyarrow/error.pxi", line 123, in pyarrow.lib.check_status
      pyarrow.lib.ArrowTypeError: Expected bytes, got a 'Decimal128' object
      

       

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            julius.park@mongodb.com Julius Park (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: