You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2022/12/12 19:45:00 UTC
[jira] [Updated] (NIFI-10970) Add a 'count' function to RecordPath
[ https://issues.apache.org/jira/browse/NIFI-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Payne updated NIFI-10970:
------------------------------
Fix Version/s: 1.20.0
Status: Patch Available (was: Open)
> Add a 'count' function to RecordPath
> ------------------------------------
>
> Key: NIFI-10970
> URL: https://issues.apache.org/jira/browse/NIFI-10970
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 1.20.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We should provide a {{count}} function for RecordPath. Currently there's no simple way to express something like "get element A where at least 1 of the child elements meets some criteria."
> We should provide the ability to count the number of elements that match a given RecordPath. For example, I can get all items from an order that have a price over 10 by using the RecordPath {{/orders/items[price > 10]}}
> However, I have no way of counting how many of those items have a price over 10.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)