Chris Sampson created NIFI-10865:
------------------------------------
Summary: 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
{{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)