Open Ronserruya opened 1 year ago
Hey, thanks, we'll take a look.
This seems to also apply to the default SchemaRegistry Serde.
Is there a way i can fix this for the included SchemaRegistry serde?
@Haarolean Any update on this? We're also being affected by this odd display behavior and would like to see it fixed.
@frankgrimes97 planned for 0.8
Reopening, since it is only fixed for Kafka schema registry, not glue
@Haarolean Any update on when we might see a fix and 0.8 release?
@Haarolean Any update on when we might see a fix and 0.8 release?
@frankgrimes97 https://github.com/provectus/kafka-ui/discussions/4255 https://github.com/kafbat/kafka-ui/discussions/23
Originally reported in #3224 , split into a separate issue following the discussion in #3235
When the glue serde deserializes to json from avro, it includes the record namespaces and types in the case of union. This is the first time I'm encountering the behaviour since the python deserializer or the one used in kafka-connect don't follow this behavior
Example:
Original msg:
schema used:
base64 encoded avro msg (just the msg, without the glue-related bytes at the start)
AAIGcm9uFnJvbiBzZXJydXlhAA5zZXJydXlhBAoMAAQABmFiYwL2AQA=
The current glue deserializer shows this msg as:
As you can see it adds
string
,int
, or the record namespacetop_level.generation.name
I fixed this issue locally by adding this line:
encoder.setIncludeNamespace(false);
in the avroRecordToJson methodBut according to the comment in #3235 , that's not a completely valid fix since it can break other stuff?
Before and after the fix: