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

Reply via email to