[
https://issues.apache.org/jira/browse/NIFI-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855250#comment-17855250
]
ASF subversion and git services commented on NIFI-13380:
--------------------------------------------------------
Commit a039bc2b76b34172dbe705f6fa01e0d9377b1d3c in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a039bc2b76 ]
NIFI-13380: When determining if Record Type A is 'wider' than Record Type B,
and both have a RECORD with the same name but different schemas, instead of
determining that A is not wider than B, perform a recursive comparison to check
if the RECORD within A's schema is wider than the RECORD within B's schema.
Signed-off-by: Matt Burgess <[email protected]>
This closes #8948
> 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)