kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Sheck <shec0...@gmail.com>
Subject Re: AVRO Schema with optional field ("type": "record")
Date Sat, 20 Oct 2018 01:21:50 GMT
Can you use a union with null?  This would be the IDL exmple.

record RecordConfig {
...
}

 union {null, RecordConfig} record = null;

On Fri, Oct 19, 2018 at 2:44 PM Mina Aslani <aslanimina@gmail.com> wrote:

> Hi,
>
> I am adding AVRO schema to the kafka messages, however, I would like to
> know how I can make a field of "type": "record" optional.
> *Note*: "default":null does not help.
>
> Any idea? Can you elaborate the solution/workaround with an example please?
>
> Best regards,
> Mina
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message