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

Ronald Mascaro commented on NIFI-5998:
--------------------------------------

I have need of this processor as well.

Some suggestions for properties in addition to those listed in the description:
 * Null Value Representation: empty string or the string 'null' 
add "ignore"  - treat empty/null fields as a non-match, don't include them in 
the results
 * Max number of results - integer 
after the limit is reached no more results from additional records will be 
returned.
Since multiple attribute/recordPath properties may be defined, the max limit 
should applied independently to each. That is, grab the first x values found 
for each that are not empty or null.

Note that for my particular use case, I would be evaluating a CSV field and 
writing the value to a FF attribute, and only want to return the value for the 
first record.

 

> EvaluateRecordPath Processor
> ----------------------------
>
>                 Key: NIFI-5998
>                 URL: https://issues.apache.org/jira/browse/NIFI-5998
>             Project: Apache NiFi
>          Issue Type: New Feature
>    Affects Versions: 1.8.0
>            Reporter: Nimrod Avni
>            Priority: Minor
>
> We should have a EvaluateRecrodPath processor, which accepts a record reader 
> as a property.
> similarly to the EvaluateJsonPath and EvaluateXpath we should have some of 
> their properties like:
>  * Destination: flowfile-content or flowfile-attributes
>  * Return type: return only the value of the record path or the entire 
> structure (xml,json,csv), should have auto-detect,structure,value
>  * Path not found behavior: ignore,warn or fail
>  * Null Value Representation: empty string or the string 'null' 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to