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

Support fixed size binary data type

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      ARROW-214 discusses adding support for a variable length binary field. It should be more straightforward to implement a fixed-size binary field. For example it should be possible to configure ObjectId as a 12-byte binary:

      Just tried to check what I get with an ObjectID extension type if I do field.type.storage_type and I get the pa.binary(12) type as far as I can tell. But if I try to do a schema with {"_id": pa.binary(12)} I get the following error:

      Unsupported data type in schema for field "_id" of type "fixed_size_binary[12]"

      Is that expected? Should I not be able to specify a schema that casts an ObjectId field directly to its storage type?

      Reported here: https://github.com/mongodb-labs/mongo-arrow/issues/236#issuecomment-2378779738

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: