You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Rob Torop <ro...@gmail.com> on 2017/11/06 22:11:13 UTC
optional values
I will be creating some idl where the records have many fields, most of
which are optional, and I'm looking for the most concise way to do it.
Suppose I have something like this
protocol someproto {
record somerec {
typea a;
typeb b;
}
}
I want both a and b to be optional. Do I need to do this?
protocol someproto {
record somerec {
union { null, typea } a = null;
union { null, typeb} b = null;
}
}