Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Question about Avro "records"

Copy link to this message
Re: Question about Avro "records"
That doesn't seem the case specially because if you define a record with a
bunch of optional fields, then you would end up with an empty object (or
rather an object with null values for its fields). Am I misunderstanding
your question?

On Wed, Feb 27, 2013 at 4:47 PM, Francis Galiegue <[EMAIL PROTECTED]>wrote:

> This is not written black on white in the spec, so this is a guess: in
> its JSON representation, fields defined in a record are the only
> permissible fields. And there can be zero fields, in which the JSON
> representation is just the empty object.
> Is this correct?
> --
> Francis Galiegue, [EMAIL PROTECTED]
> JSON Schema in Java: http://json-schema-validator.herokuapp.com

Pankaj Shroff