Closed lazargugleta closed 4 months ago
Hey,
When struct is put inside a list
schema = pymongoarrow.api.Schema({'_id': bson.ObjectId, 'list': [(pyarrow.struct([('a', pyarrow.int32()), ('b', pyarrow.string())]))]})
it raises
> raise ValueError(msg) E ValueError: Unsupported type identifier <class 'pyarrow.lib.StructType'> for field 0
As the case for lists in the function _normalize_typeid exists, then it seems that it should be supported, but there is a bug.
Expected behavior:
<Schema {'_id': ObjectIdType(FixedSizeBinaryType(fixed_size_binary[12])), 'list': ListType(list<item: struct<a: int32, b: string>>)}>
See #223 for a fix.
Great find! I've attached the details of this issue to this ongoing JIRA Ticket and have also linked your PR: #223
Hey,
When struct is put inside a list
it raises
As the case for lists in the function _normalize_typeid exists, then it seems that it should be supported, but there is a bug.
Expected behavior:
See #223 for a fix.