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

[SPARK-41026][CONNECT][PYTHON][FOLLOW-UP] Add Coalesce and Repartition API to Python client. #38549

Closed
wants to merge 2 commits into from

Conversation

amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

Following up #38529, with Reparitition proto we can support Coalesce and Repartition API in Python client.

Why are the changes needed?

Improve API coverage

Does this PR introduce any user-facing change?

NO

How was this patch tested?

UT

@amaliujia
Copy link
Contributor Author

R: @HyukjinKwon @zhengruifeng

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@zhengruifeng zhengruifeng left a comment

Choose a reason for hiding this comment

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

LGTM

self._session,
)

def repartition(self, numPartitions: int) -> "DataFrame":
Copy link
Contributor

Choose a reason for hiding this comment

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

should support *cols after repartitionByExpression added

@zhengruifeng
Copy link
Contributor

merged into master

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…n API to Python client

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

Following up apache#38529, with `Reparitition` proto we can support `Coalesce` and `Repartition` API in Python client.

### Why are the changes needed?

Improve API coverage

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

NO

### How was this patch tested?

UT

Closes apache#38549 from amaliujia/support_coalesce_in_python.

Authored-by: Rui Wang <rui.wang@databricks.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants