[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steven Jacobs updated ASTERIXDB-1688:
-------------------------------------
    Description: 
Functions for random numbers would be useful for a variety of purposes. The  
issue with them versus other functions is the need for keeping track of and 
differentiating seed values between calls to the function between queries. A 
first strike at this problem could likely allow for just one seed per function 
call, while improvements could possibly allow for multiple calls in the same 
query to use different seed values entirely. 

Note: We should make sure that any random number function is classified as a 
nonPure function (i.e. isFunctional should be false)

  was:Functions for random numbers would be useful for a variety of purposes. 
The  issue with them versus other functions is the need for keeping track of 
and differentiating seed values between calls to the function between queries. 
A first strike at this problem could likely allow for just one seed per 
function call, while improvements could possibly allow for multiple calls in 
the same query to use different seed values entirely. 


> Functions for Random numbers
> ----------------------------
>
>                 Key: ASTERIXDB-1688
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1688
>             Project: Apache AsterixDB
>          Issue Type: New Feature
>          Components: AsterixDB, Functions - AQL
>            Reporter: Michael J. Carey
>            Priority: Minor
>
> Functions for random numbers would be useful for a variety of purposes. The  
> issue with them versus other functions is the need for keeping track of and 
> differentiating seed values between calls to the function between queries. A 
> first strike at this problem could likely allow for just one seed per 
> function call, while improvements could possibly allow for multiple calls in 
> the same query to use different seed values entirely. 
> Note: We should make sure that any random number function is classified as a 
> nonPure function (i.e. isFunctional should be false)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to