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

ObjectId Type does not support Table.from_pydict

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Running into this strange error attempting to create an Arrow table with the ObjectId type. 

      [4:55 PM]         coll = self.coll.with_options(codec_options=DEFAULT_CODEC_OPTIONS.with_options(uuid_representation=UuidRepresentation.STANDARD))
              schema = \{"_id": ObjectIdType()}
              data = Table.from_pydict(
                  \{"_id": [ObjectId().binary]},
                  ArrowSchema(schema),
              )
      [4:55 PM] (python3.8) ➜  python git:(ARROW-71) ✗ python -m unittest discover test -k test_arrow -f
      .........E
      ======================================================================
      ERROR: test_write_codec_options (test_arrow.TestArrowExplicitApi)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Users/julius/Work/mongo-arrow/bindings/python/test/test_arrow.py", line 258, in test_write_codec_options
          data = Table.from_pydict(
        File "pyarrow/table.pxi", line 1868, in pyarrow.lib.Table.from_pydict
        File "pyarrow/table.pxi", line 2675, in pyarrow.lib._from_pydict
        File "pyarrow/array.pxi", line 342, in pyarrow.lib.asarray
        File "pyarrow/array.pxi", line 316, in pyarrow.lib.array
        File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
        File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
        File "pyarrow/error.pxi", line 120, in pyarrow.lib.check_status
      pyarrow.lib.ArrowNotImplementedError: extension
      
      ----------------------------------------------------------------------
      Ran 10 tests in 8.341s
      

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

              Created:
              Updated:
              Resolved: