You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Gyori (Jira)" <ji...@apache.org> on 2021/06/03 16:30:00 UTC

[jira] [Commented] (NIFI-8498) Optional removal of fields with UpdateRecord

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

Peter Gyori commented on NIFI-8498:
-----------------------------------

A new draft pull request is available.
[https://github.com/apache/nifi/pull/5121]
The code has been reworked completely compared to the original pull request (PR-5038). The new approach is: handling field removal on the Record level, instead of only in the UpdateRecord processor.

> Optional removal of fields with UpdateRecord
> --------------------------------------------
>
>                 Key: NIFI-8498
>                 URL: https://issues.apache.org/jira/browse/NIFI-8498
>             Project: Apache NiFi
>          Issue Type: Sub-task
>          Components: Extensions
>            Reporter: Peter Gyori
>            Assignee: Peter Gyori
>            Priority: Major
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> (Based on https://issues.apache.org/jira/browse/NIFI-8243)
> Improve the UpdateRecord processor for field removal:
> In case "Replacement Value Strategy" is set to "Record Path Value", allow the users to set the empty string as the value of the paths provided through dynamic properties. This would provide the capability to remove fields.
> Example - *input*
> {code:java}
> {
>   "foo": "value",
>   "record": {
>     "subrecord": {
>       "key": "value"
>     }
>   }
> }{code}
>  
> *Dynamic property: /record => <empty string>*
> *Output*
> {code:java}
> {
>   "foo": "value"
> }{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)