[
https://issues.apache.org/jira/browse/PHOENIX-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245828#comment-14245828
]
Lars Hofhansl commented on PHOENIX-1516:
----------------------------------------
Thanks [~julianhyde]. I do not quite follow the streams argument. That's from
the MySQL documentation, right?
It does not clarify whether each call to RAND() produces a new value or whether
it's once per row. They seem to imply the former.
Seems easiest now to make RAND() PER STATEMENT, and have each invocation of
RAND() return a new random value - via evaluate. That would also alleviate any
locking concerns in Java's Random() constructor.
Thoughts?
> Add RANDOM built-in function
> ----------------------------
>
> Key: PHOENIX-1516
> URL: https://issues.apache.org/jira/browse/PHOENIX-1516
> Project: Phoenix
> Issue Type: Bug
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Attachments: 1516.txt
>
>
> I often find it useful to generate some rows with random data.
> Here's a simple RANDOM() function that we could use for that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)