Skip to content

[MINOR][SQL] Modify the example of rand and randn.#32844

Closed
sarutak wants to merge 1 commit into
apache:masterfrom
sarutak:rand-example
Closed

[MINOR][SQL] Modify the example of rand and randn.#32844
sarutak wants to merge 1 commit into
apache:masterfrom
sarutak:rand-example

Conversation

@sarutak
Copy link
Copy Markdown
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
Copy Markdown

SparkQA commented Jun 9, 2021

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

@SparkQA
Copy link
Copy Markdown

SparkQA commented Jun 9, 2021

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

@SparkQA
Copy link
Copy Markdown

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
Copy Markdown
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