You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yuming Wang (JIRA)" <ji...@apache.org> on 2019/06/13 04:42:00 UTC
[jira] [Updated] (SPARK-27930) Add built-in Math Function: RANDOM
[ https://issues.apache.org/jira/browse/SPARK-27930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuming Wang updated SPARK-27930:
--------------------------------
Description:
This ticket list all built-in UDFs have different names:
|PostgreSQL|Spark SQL|
|random|rand|
|format|format_string|
was:
The RANDOM function generates a random value between 0.0 and 1.0. Syntax:
{code:sql}
RANDOM()
{code}
More details:
https://www.postgresql.org/docs/12/functions-math.html
Other DBs:
https://docs.aws.amazon.com/redshift/latest/dg/r_RANDOM.html
https://www.vertica.com/docs/9.2.x/HTML/Content/Authoring/SQLReferenceManual/Functions/Mathematical/RANDOM.htm?tocpath=SQL%20Reference%20Manual%7CSQL%20Functions%7CMathematical%20Functions%7C_____24
> Add built-in Math Function: RANDOM
> ----------------------------------
>
> Key: SPARK-27930
> URL: https://issues.apache.org/jira/browse/SPARK-27930
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Yuming Wang
> Priority: Major
>
> This ticket list all built-in UDFs have different names:
> |PostgreSQL|Spark SQL|
> |random|rand|
> |format|format_string|
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org