Skip to content

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Jun 9, 2021

What changes were proposed in this pull request?

This PR fixes the examples of rand and randn.

Why are the changes needed?

SPARK-23643 (#20793) fixes an issue which is related to the seed and it causes the result of rand and randn.
Now the results of SELECT rand(0) and SELECT randn((null) are 0.7604953758285915 and 1.6034991609278433 respectively, and they should be deterministic because the number of partitions are always 1 (the leaf node is OneRowRelation).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Built the doc and confirmed it.
rand-doc

@github-actions github-actions bot added the SQL label Jun 9, 2021
@SparkQA
Copy link

SparkQA commented Jun 9, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44104/

@SparkQA
Copy link

SparkQA commented Jun 9, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44104/

@SparkQA
Copy link

SparkQA commented Jun 9, 2021

Test build #139578 has finished for PR 32844 at commit db48cfc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master, brnach-3.1 and branch-3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants