InvalidArgumentError("column types must match schema types, expected Map(Field { name: \"entries\", data_type: Struct([Field { name: \"key\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"value\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, false) but found Map(Field { name: \"entries\", data_type: Struct([Field { name: \"key\", data_type: Utf8, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"value\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }]), nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, false) at column index 0")
You can reproduce with a simple unit test with the schema above.
Describe the bug
When you try to decode data with schema like
{ "name": "map_of_strings", "type": { "type": "map", "values": "string" }, "doc": "Map with string values" }Decoder fails with the following error
To Reproduce
You can reproduce with a simple unit test with the schema above.
Additional context