You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jason Ferrell (JIRA)" <ji...@apache.org> on 2019/05/24 19:22:00 UTC
[jira] [Created] (SPARK-27836) Issue with seeded rand() function in
Spark SQL
Jason Ferrell created SPARK-27836:
-------------------------------------
Summary: Issue with seeded rand() function in Spark SQL
Key: SPARK-27836
URL: https://issues.apache.org/jira/browse/SPARK-27836
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.4.0
Reporter: Jason Ferrell
This SQL:
with a as
(
select 123 val1
union all
select 123 val1
union all
select 123 val1
)
select val1,rand(123)
from a
Results in:
|val1|rand(123)|
|123|0.502953|
|123|0.52307|
|123|0.853569|
It should result in three rows all with value 0.502953
--
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