The type of foo should be an array, not a record.
Lukas
On Mon, Apr 13, 2015 at 1:35 AM, Marius m.die0...@googlemail.com wrote:
Hi,
i want to put some data into an avro file, however in my case it doesn't
work...
{
name : fooList,
type : record,
fields : [
{name : count, type : int},
{name : foo, type : {
type : record,
name : fooData,
fields :[
{name : ids, type : int}
]
}
}
]
}
I want to put exactly one count (the number of ids) in it and a variable
number of ids... However i can only append one count and one id...
I'm new to avro and JSON so i'm not sure if my idea is right or if i have
to rewrite my code...
BTW i tried to google that but i couldn't find anything ;)
Thanks and Greetings
Marius