I have a kafka-topic in which I put messages with different avro schemas, for example Messages1 contain Data0, Data1 and Data2, while Messages2 contain Data0, Data3 and Data4, Data1 and Data2 defaulting to null.
With a "global" mapping, including all DataX, it gives error that Data1 and Data2 are null when receiving Messages2, and that Data3 and Data4 are nulll when receiving Messages1.
Is there a way to handle that ? Kind of a "condional" mapping ?
Thanks in advance.