Re: Avro Schema Question

2018-05-25 Thread Motoko Kusanagi
Hi Michael, Thanks!! Yes, it does. Scott From: Michael Smith Sent: Friday, May 25, 2018 2:21 PM To: user@avro.apache.org Subject: Re: Avro Schema Question {"type": "int"}, {"type": "string"} is not valid json, so you definitely can't do

Re: Avro Schema Question

2018-05-25 Thread Michael Smith
{"type": "int"}, {"type": "string"} is not valid json, so you definitely can't do that. But [{"type": "int"}, {"type": "string"}] is a valid schema -- it can encode a single value that is either an int or a string. At the highest level, your schema can only be one type, but that type may be (and

Avro Schema Question

2018-05-25 Thread Motoko Kusanagi
Hi, I read the specification multiple times. In the specification, it says "A Schema is represented in JSON by one of:" in the Schema Declaration section. The "one" confuses me as I am interpreting it as exactly one of the 3 that it listed. In short, can I do this as a

In Avro IDL, how can I import an externally provided schema?

2018-05-25 Thread Bob Price
I asked an Avro IDL question in StackOverflow but got no responses. Can anyone here answer it? It is at: In Avro IDL, how can I import an externally provided schema? | | | | | | | | | | | In Avro IDL, how can I import an externally provided schema? A simple example illustrates my