[ 
https://issues.apache.org/jira/browse/NIFI-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-13380:
------------------------------
    Status: Patch Available  (was: Open)

> UpdateRecord sometimes not working when schema is complex
> ---------------------------------------------------------
>
>                 Key: NIFI-13380
>                 URL: https://issues.apache.org/jira/browse/NIFI-13380
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If I have a record along the lines of:
> {code:java}
> {
>   "people": [{
>     "name": "John Doe",
>     "age": 30,
>     "siblings": [{
>       "sister": {
>         "name": "Jane Doe",
>         "extraInfo": {}
>       }
>     }]
>   }]
> } {code}
> I use UpdateRecord to update {{//sister[./name = 'Jane 
> Doe']/extraInfo/title}} to a value of {{Dr.}} but the output is unchanged.
> It seems that the schema that is inferred has a lot of complex CHOICE types, 
> as the 'extraInfo' may now have a 'title' or not. And the RECORD type of the 
> siblings array has a CHOICE as a result, and so on.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to