Hi
I'm struggling with a record conversion. Not sure if it's my lack of
knowledge about AVRO or if this even possible with the ConvertRecord
processor.
My input record schema is:
{
"name": "inputrecord",
"namespace": "event",
"type": "record",
"fields": [
{ "name": "foo", "type": "string" },
{ "name": "bar", "type": "string" },
{ "name": "baz", "type": "string" }
]
}
My output record schema:
{
"name": "outputrecord",
"namespace": "event",
"type": "record",
"fields": [
{ "name": "foo", "type": "string" },
{ "name": "bar", "type": "string" },
{ "name": "attributes",
"type": { "type": "record",
"name": "attributes",
"namespace": "event",
"fields" : [
{"name": "baz", "type": "string"}
]
}
}
]
}
So basically, I want to have baz as a child attribute under the
"attributes" element.
Currently I'm only getting "null" values back. If I use the inputrecord
as the output schema, I'm getting a value back for baz.
Thanks for your help!
Mika>