avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tianxiang Xiong <tianxiang.xi...@fundingcircle.com>
Subject Specify non-empty array, map, etc.
Date Sat, 06 May 2017 02:51:31 GMT
In Avro 1.7.7, is there a way to specify a *non-empty* array, map, etc.?
There doesn't seem to be according to the spec

There are applications in which we mandate that a data format has a
non-empty array. It'd be nice if that could be expressed in the schema so
data with nonempty arrays fail to serialize (and are thus never put on a
Kafka topic). Fail earlier > fail later.



View raw message