Mark Payne created NIFI-4306:
--------------------------------

             Summary: UpdateRecord does not allow user to set root path to some 
child record
                 Key: NIFI-4306
                 URL: https://issues.apache.org/jira/browse/NIFI-4306
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Mark Payne
            Assignee: Mark Payne


If i have the following record:

{code}
{
  "queue": {
     "count": 1,
     "size": "1 MB"
  }
}
{code}

And I want to get rid of the 'queue' element I should be able to do so by using 
UpdateRecord with a property name of "/" and a value of "/queue/*"

Currently, if I try this, though, I get an error indicating that more than 1 
element has been selected. We should instead just create a 'record' object with 
both the 'count' and 'size' fields and set that as the root so that the result 
is:

{code}
{
  "count": 1,
  "size": "1 MB"
}
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to