Closed 0x1D-1983 closed 3 years ago
Hi @0x1D-1983,
You are right ! Serdes is not initialized from Schema registry and if you modify ValueAndTimestampSerDes ( initialize the inner serdes), maybe it's cool but can't work any time at 100%.
Why ?
At time I haven't changelog topic, so when schema registry client need a schema (option1 : check local cache and that's works ! option2: No present in cache, and need to contact schema registry with a subject (default: topicName-key or topicName-value), but I haven't changelog topic at time (present normally in next release 1.2.0 soon I hope)./
SO that's why and you have just source and sink data with SchemaAvroSerdes, it's works because I can set a topic name.
A good workaround is to use JSON Formatter (without registry) for intermediate statefull processor waiting 1.2.0 release.
If you have any other question, do not hesitate.
Thank you for the answer. I will try Option1 (local cache) and if it doesn't work I will check the JSON formatter workaround. Cheers!
It works fine with the JSON formatter. 🎉 I will keep an eye on future updates regarding the changelog topic. Happy to close this issue.
Description
When creating tumbling windows the result object's SerDes is not passed to the inner window store.
How to reproduce
Having the following stream:
Will throw the following exception:
If I remove the windowing tasks and just leave an input/output Map steps, ObjectBs are properly written in the output topic, so the SerDes alone is working fine. But when the Windowing aggregator step is added the SerDes gets lost for the output object.
Modifying the ValueAndTimestampSerDes class to initialize the inner serdes causes seems to be working but it's not quite 100%, the output topic SerializationContext is still of the input and not the output.
InnerSerdes.Initialize(serDesContext);
How can I properly feed in the output schema SerDes and topic name to the below method:
public override byte[] Serialize(ValueAndTimestamp<V> data, SerializationContext context)
Checklist
"Streamiz.Kafka.Net" Version="1.1.5" "Streamiz.Kafka.Net.SchemaRegistry.SerDes.Avro" Version="1.1.5" Kafka docker image: confluentinc/cp-kafka:5.3.0 Schema registry: confluentinc/cp-schema-registry:6.0.0 .net 5.0 on MacOS