You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/04/29 16:28:00 UTC
[jira] [Commented] (NIFI-10865) Allow UpdateRecord to replace root fields with RecordPath unescapeJson output
[ https://issues.apache.org/jira/browse/NIFI-10865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717937#comment-17717937 ]
ASF subversion and git services commented on NIFI-10865:
--------------------------------------------------------
Commit e2067c4ea19f0b1b30ddb89717a190fe09f8b87f in nifi's branch refs/heads/support/nifi-1.x from Chris Sampson
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e2067c4ea1 ]
NIFI-10865 allow RecordPath's unescapeJson to convert de-serialised JSON Objects into Records
NIFI-10865 allow UpdateRecord to replace the Record root for relative paths, e.g. when a RecordPath function is used to modify selected field(s)
This closes #6708
Signed-off-by: Mike Thomsen <mt...@apache.org>
> Allow UpdateRecord to replace root fields with RecordPath unescapeJson output
> -----------------------------------------------------------------------------
>
> Key: NIFI-10865
> URL: https://issues.apache.org/jira/browse/NIFI-10865
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.18.0
> Reporter: Chris Sampson
> Assignee: Chris Sampson
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> {{UpdateRecord}} currently cannot replace the root of a Record with the output of the {{unescapeJson}} RecordPath function.
> While a child Record within a Record can be "moved" to the top-level, e.g. {{/ => /child}}, this doesn't work if the RecordPath function is used, e.g. {{/ => unescapeJson(/stringified_child)}}.
> Rather than replacing the Record content with the output of the {{unescapeJson}} function, a {{root}} field is added to the input Record (i.e. with the name {{root}})) and the de-stringified content of the selected field(s) serialised in {{Map}} format.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)