Closed AlfUA closed 5 years ago
I'm usinn erlavro to decode messages from Kafka, that contains the following element structure:
{ "name":Limit", "type":["null",{ "type":"bytes", "scale":2, "precision":64, "connect.version":1, "connect.parameters":{"scale":"2"}, "connect.name":"org.apache.kafka.connect.data.Decimal", "logicalType":"decimal" }], "default":null }.
Decode function fails trying to find an unexisting clause of avro_util:ensure_binary/1, that doesn't handle the object cast ({"scale":"2"}). Could you please help with the issue?
I'm usinn erlavro to decode messages from Kafka, that contains the following element structure:
{ "name":Limit", "type":["null",{ "type":"bytes", "scale":2, "precision":64, "connect.version":1, "connect.parameters":{"scale":"2"}, "connect.name":"org.apache.kafka.connect.data.Decimal", "logicalType":"decimal" }], "default":null }.
Decode function fails trying to find an unexisting clause of avro_util:ensure_binary/1, that doesn't handle the object cast ({"scale":"2"}). Could you please help with the issue?