Skip to content

[SPARK-32338][SQL][PYSPARK][FOLLOW-UP] Update slice to accept Column for start and length.#29195

Closed
ueshin wants to merge 1 commit intoapache:masterfrom
ueshin:issues/SPARK-32338/slice
Closed

[SPARK-32338][SQL][PYSPARK][FOLLOW-UP] Update slice to accept Column for start and length.#29195
ueshin wants to merge 1 commit intoapache:masterfrom
ueshin:issues/SPARK-32338/slice

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Jul 22, 2020

What changes were proposed in this pull request?

This is a follow-up of #29138 which added overload slice function to accept Column for start and length in Scala.

This PR is updating the equivalent Python function to accept Column as well.

Why are the changes needed?

Now that Scala version accepts Column, Python version should also accept it.

Does this PR introduce any user-facing change?

Yes, PySpark users will also be able to pass Column object to start and length parameter in slice function.

How was this patch tested?

Added tests.

@ueshin
Copy link
Member Author

ueshin commented Jul 22, 2020

Also cc @nvander1

@SparkQA
Copy link

SparkQA commented Jul 22, 2020

Test build #126364 has finished for PR 29195 at commit cc22104.

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

@HyukjinKwon
Copy link
Member

Merged to master.

HyukjinKwon pushed a commit that referenced this pull request Jan 13, 2021
… function

### What changes were proposed in this pull request?

This PR is a follow-up of #29138 and #29195 to add more tests for `slice` function.

### Why are the changes needed?

The original PRs are missing tests with column-based arguments instead of literals.

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

No.

### How was this patch tested?

Added tests and existing tests.

Closes #31159 from ueshin/issues/SPARK-32338/slice_tests.

Authored-by: Takuya UESHIN <ueshin@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
HyukjinKwon pushed a commit that referenced this pull request Jan 13, 2021
… function

### What changes were proposed in this pull request?

This PR is a follow-up of #29138 and #29195 to add more tests for `slice` function.

### Why are the changes needed?

The original PRs are missing tests with column-based arguments instead of literals.

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

No.

### How was this patch tested?

Added tests and existing tests.

Closes #31159 from ueshin/issues/SPARK-32338/slice_tests.

Authored-by: Takuya UESHIN <ueshin@databricks.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit ad8e40e)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants