Create nested records

2018-02-08 Thread Charlie Frasure
Hi, I'm having trouble taking a flat record and building an avro schema that lets me nest it. I found this example schema, but after using a ConvertRecord or UpdateRecord, I receive the equivalent of [{"parent" = null}] {"type": "record", "name": "CustomerInput", "namespace":

Re: Help on NiFi RecordPath

2018-02-08 Thread Mark Payne
Leandro, I think you’re super close! You should be able to use: /attachments/values[*]/value Sent from my iPhone On Feb 8, 2018, at 7:29 PM, Leandro Lourenço > wrote: Hey there, I've been trying to use RecordPath to retrieve

Help on NiFi RecordPath

2018-02-08 Thread Leandro Lourenço
Hey there, I've been trying to use RecordPath to retrieve information, but I'm a bit stuck. Have a complex schema that involves records and maps. This is my Avro Schema: { "type": "record", "name": "Contact", "fields" : [ {"name": "id", "type": "string"}, {"name": "firstName",

Re: ConvertRecord

2018-02-08 Thread Matt Burgess
Austin, What version of NiFi are you using? I'm wondering if you're running into [1] (fixed in 1.3.0), or [2] (fixed in 1.4.0), or something else. You may want to change the types to be "optional", meaning a union between null and the intended type. So for "PracticeId", try: {"name":

ConvertRecord

2018-02-08 Thread Austin Duncan
All, I am trying to convert an avro record taken from a QueryDatabaseRecord processor and convert it into a json. I am trying to do this with the convert record processor using the avroreader and jsonrecordsetwriter controller services. My avro schema is being inferred by the avroreader and my