[ 
https://issues.apache.org/jira/browse/NIFI-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158912#comment-16158912
 ] 

ASF subversion and git services commented on NIFI-4306:
-------------------------------------------------------

Commit 9ebf2cfaf1fdb1a28427aed5a8168004071efd12 in nifi's branch 
refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=9ebf2cf ]

NIFI-4306: Allow root field to be updated to a child field by adding property 
with name / and value /child, for instance

Signed-off-by: Pierre Villard <[email protected]>

This closes #2103.


> 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
>             Fix For: 1.4.0
>
>
> 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