AVRO schema_registry_decode issue #1161
Labels
bug
processors
Any tasks or issues relating specifically to processors
waiting for upstream
Blocked on changes needed in an upstream dependency
I'm seeing some issues when decoding AVRO logical types It looks like
codec.TextualFromNative
must be called here, but even then there are some issues.To reproduce, create the following
schema.avsc
file:And the following
message.json
file:Start Redpanda in a Docker container:
> docker run --rm -p 8081:8081 -p 8082:8082 -p 9092:9092 --name redpanda docker.vectorized.io/vectorized/redpanda redpanda start --smp 1 --overprovisioned --kafka-addr 0.0.0.0:9092 --advertise-kafka-addr host.docker.internal:9092 --pandaproxy-addr 0.0.0.0:8082 --advertise-pandaproxy-addr host.docker.internal:8082
Start a Kafka tools Docker container and produce the above message on a topic called
test
:Then create the following Benthos
avro.yaml
config:Running Benthos v3.65.0 produces this output:
And changing the code here to call
codec.TextualFromNative
produces this output:While the change does improve things, it looks like there's still an issue with
long_time_micros
which seems to require a bit of digging into goavro.The text was updated successfully, but these errors were encountered: