Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-139

Fully support ObjectId extension type

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Attempting to use the ObjectId extension type in a schema results in this 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 'ObjectId' object
      

       

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

              Created:
              Updated:
              Resolved: