You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/01/23 20:33:00 UTC
[jira] [Commented] (NIFI-10970) Add a 'count' function to RecordPath
[ https://issues.apache.org/jira/browse/NIFI-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680018#comment-17680018 ]
ASF subversion and git services commented on NIFI-10970:
--------------------------------------------------------
Commit 2ead9e54947a56f59faead0e8a5f324056d47171 in nifi's branch refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2ead9e5494 ]
NIFI-10970: Added a count RecordPath function
Signed-off-by: Chris Sampson <ch...@gmail.com>
This closes #6778
> 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: 1h 20m
> 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)