Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR][SQL][3.0] Improve examples for percentile_approx() #29848

Closed

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Sep 23, 2020

What changes were proposed in this pull request?

In the PR, I propose to replace current examples for percentile_approx() with only one input value by example with multiple values in the input column.

Why are the changes needed?

Current examples are pretty trivial, and don't demonstrate function's behaviour on a sequence of values.

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • by running ExpressionInfoSuite
  • ./dev/scalastyle

Authored-by: Max Gekk max.gekk@gmail.com
Signed-off-by: HyukjinKwon gurwls223@apache.org
(cherry picked from commit b53da23)
Signed-off-by: Max Gekk max.gekk@gmail.com

In the PR, I propose to replace current examples for `percentile_approx()` with **only one** input value by example **with multiple values** in the input column.

Current examples are pretty trivial, and don't demonstrate function's behaviour on a sequence of values.

No

- by running `ExpressionInfoSuite`
- `./dev/scalastyle`

Closes apache#29841 from MaxGekk/example-percentile_approx.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit b53da23)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@HyukjinKwon
Copy link
Member

Merged to branch-3.0.

HyukjinKwon pushed a commit that referenced this pull request Sep 23, 2020
### What changes were proposed in this pull request?
In the PR, I propose to replace current examples for `percentile_approx()` with **only one** input value by example **with multiple values** in the input column.

### Why are the changes needed?
Current examples are pretty trivial, and don't demonstrate function's behaviour on a sequence of values.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- by running `ExpressionInfoSuite`
- `./dev/scalastyle`

Authored-by: Max Gekk <max.gekkgmail.com>
Signed-off-by: HyukjinKwon <gurwls223apache.org>
(cherry picked from commit b53da23)
Signed-off-by: Max Gekk <max.gekkgmail.com>

Closes #29848 from MaxGekk/example-percentile_approx-3.0.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@SparkQA
Copy link

SparkQA commented Sep 23, 2020

Test build #129016 has finished for PR 29848 at commit b063ca1.

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

holdenk pushed a commit to holdenk/spark that referenced this pull request Oct 27, 2020
### What changes were proposed in this pull request?
In the PR, I propose to replace current examples for `percentile_approx()` with **only one** input value by example **with multiple values** in the input column.

### Why are the changes needed?
Current examples are pretty trivial, and don't demonstrate function's behaviour on a sequence of values.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- by running `ExpressionInfoSuite`
- `./dev/scalastyle`

Authored-by: Max Gekk <max.gekkgmail.com>
Signed-off-by: HyukjinKwon <gurwls223apache.org>
(cherry picked from commit b53da23)
Signed-off-by: Max Gekk <max.gekkgmail.com>

Closes apache#29848 from MaxGekk/example-percentile_approx-3.0.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@MaxGekk MaxGekk deleted the example-percentile_approx-3.0 branch December 11, 2020 20:28
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