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:44:00 UTC
[jira] [Created] (NIFI-10970) Add a 'count' function to RecordPath
Mark Payne created NIFI-10970:
---------------------------------
Summary: 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
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)