You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/04/03 22:25:25 UTC
[jira] [Commented] (NIFI-1661) Expression language should support a
random function
[ https://issues.apache.org/jira/browse/NIFI-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223503#comment-15223503 ]
ASF GitHub Bot commented on NIFI-1661:
--------------------------------------
GitHub user ckmcd opened a pull request:
https://github.com/apache/nifi/pull/322
NIFI-1661 add random() function to expression language.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ckmcd/nifi NIFI-1661
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/322.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #322
----
commit 75f567c2f5aac12f62eda8ed421130071bd2689b
Author: Chris McDermott <ch...@hpe.com>
Date: 2016-04-03T20:19:55Z
NIFI-1661 add random() function to expression language.
----
> Expression language should support a random function
> ----------------------------------------------------
>
> Key: NIFI-1661
> URL: https://issues.apache.org/jira/browse/NIFI-1661
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Christopher McDermott
> Priority: Minor
>
> Random would be a subjectless function that generates a 32? bit random number. The random number generator need not be cryptographically secure.
> A use case would be for random be to generate a random pattern across some number of file paths to be used with putFile.
> Example - puts files randomly to /my-dirs/dir-1, /my-dirs/dir-2, /my-dirs/dir-3
> /my-dirs/dir-${random():mod(3):plus(1)}/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)