jeudi 16 avril 2015

repeating fields in avro (python)


Vote count:

0




I am trying to use avro in python to serialize XML data. I can figure out the optional field coding, but how do I do repeated fields?


For example, given this schema, how do I make favorite_number a repeated field so that someone can have more than one favorite_number?



{"namespace": "example.avro",
"type": "record",
"name": "User",
"fields": [
{"name": "name", "type": "string"},
{"name": "favorite_number", "type": "int"},
{"name": "favorite_color", "type": ["string", "null"]}
]
}


asked 2 mins ago







repeating fields in avro (python)

Aucun commentaire:

Enregistrer un commentaire