Thank you very much for the solution and its explanation.
--
Emre Sevinç
On Mon, Dec 15, 2014 at 8:12 PM, Doug Cutting wrote:
>
> Avro's JSON encoding requires that non-null union values be tagged
> with their intended type. This is because unions like
> ["bytes","string"] and ["int","long"] ar
Avro's JSON encoding requires that non-null union values be tagged
with their intended type. This is because unions like
["bytes","string"] and ["int","long"] are ambiguous in JSON, the first
are both encoded as JSON strings, while the second are both encoded as
JSON numbers.
http://avro.apache.o
Hello,
I'm trying to validate a JSON file using an Avro schema and write the
corresponding Avro file. First, I've defined the following Avro schema
named user.avsc:
{"namespace": "example.avro",
"type": "record",
"name": "user",
"fields": [
{"name": "name", "type": "string"},
{"name"