Pierre Villard created NIFI-12538:
-------------------------------------
Summary: Add map Record Standalone Function
Key: NIFI-12538
URL: https://issues.apache.org/jira/browse/NIFI-12538
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Reporter: Pierre Villard
Assignee: Pierre Villard
Adding a function that can be used to create a map of Strings.
For example, if we have the following record:
{code:java}
{
"firstName": "John",
"lastName": "Snow"
}{code}
We could use the {{UpdateRecord}} processor with
{code:java}
/fullName => map("firstName", /firstName, "lastName", /lastName){code}
And that would give us something like:
{code:java}
{
"firstName": "John",
"lastName": "Snow",
"fullName": {"firstName": "John", "lastName": "Snow"}
}{code}
This function requires an even number of arguments and the record paths must
represent simple field values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)