Hi Holger,

On Mon, Sep 23, 2024 at 12:58 PM Holger Hoefling <[email protected]> wrote:

> Hi
>
> I am trying to parse a schema of the type:
>
> { "type": { "type": "array", "items": "string"}, "logicalType": "mytype"}
>
> The error is:
>
> TypeError: Unhashable type: 'dict'
>
> and occurs at:
>
> https://github.com/apache/avro/blob/main/lang/py/avro/schema.py#L1223
>
> Here, the 'type' that is a dict is checked if it is inside a key of another
> dict. For that it
> would need to be hashed, and as it is a dict, that is not possible.
>
> Is this a known bug? Any fixes available?
>

I am not aware of a Jira report about this problem.
https://stackoverflow.com/questions/13264511/typeerror-unhashable-type-dict
suggests some solutions.



>
> Thanks
>
> Holger Hoefling
>

Reply via email to