Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Jun 12, 2019

What changes were proposed in this pull request?

Just found the doctest on over function of Column is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of Column have doctest generally, so this PR tries to improve it.

How was this patch tested?

Added doctest.

@viirya
Copy link
Member Author

viirya commented Jun 12, 2019

cc @HyukjinKwon

:return: a Column
>>> from pyspark.sql import Window
>>> window = Window.partitionBy("name").orderBy("age").rowsBetween(-1, 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Window spec rowsBetween(-1, 1) doesn't match with rank.

@SparkQA
Copy link

SparkQA commented Jun 12, 2019

Test build #106429 has finished for PR 24854 at commit 6afd936.

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

@HyukjinKwon
Copy link
Member

Merged to master and branch-2.4.

HyukjinKwon pushed a commit that referenced this pull request Jun 13, 2019
## What changes were proposed in this pull request?

Just found the doctest on `over` function of `Column` is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of `Column` have doctest generally, so this PR tries to improve it.

## How was this patch tested?

Added doctest.

Closes #24854 from viirya/column-test-minor.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit ddf4a50)
Signed-off-by: HyukjinKwon <[email protected]>
@dongjoon-hyun dongjoon-hyun added TESTS and removed TEST labels Jun 14, 2019
emanuelebardelli pushed a commit to emanuelebardelli/spark that referenced this pull request Jun 15, 2019
## What changes were proposed in this pull request?

Just found the doctest on `over` function of `Column` is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of `Column` have doctest generally, so this PR tries to improve it.

## How was this patch tested?

Added doctest.

Closes apache#24854 from viirya/column-test-minor.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
rluta pushed a commit to rluta/spark that referenced this pull request Sep 17, 2019
## What changes were proposed in this pull request?

Just found the doctest on `over` function of `Column` is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of `Column` have doctest generally, so this PR tries to improve it.

## How was this patch tested?

Added doctest.

Closes apache#24854 from viirya/column-test-minor.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit ddf4a50)
Signed-off-by: HyukjinKwon <[email protected]>
kai-chi pushed a commit to kai-chi/spark that referenced this pull request Sep 26, 2019
## What changes were proposed in this pull request?

Just found the doctest on `over` function of `Column` is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of `Column` have doctest generally, so this PR tries to improve it.

## How was this patch tested?

Added doctest.

Closes apache#24854 from viirya/column-test-minor.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit ddf4a50)
Signed-off-by: HyukjinKwon <[email protected]>
igreenfield pushed a commit to axiomsl/spark that referenced this pull request Nov 4, 2019
## What changes were proposed in this pull request?

Just found the doctest on `over` function of `Column` is commented out. The window spec is also not for the window function used there.

We should either remove the doctest, or improve it.

Because other functions of `Column` have doctest generally, so this PR tries to improve it.

## How was this patch tested?

Added doctest.

Closes apache#24854 from viirya/column-test-minor.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit ddf4a50)
Signed-off-by: HyukjinKwon <[email protected]>
@viirya viirya deleted the column-test-minor branch December 27, 2023 18:36
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.

4 participants