[
https://issues.apache.org/jira/browse/NIFI-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-13380:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Fix For: 2.0.0-M4
>
> Time Spent: 0.5h
> 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)