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-51176][PYTHON][CONNECT] Meet consistency for unexpected errors PySpark Connect <> Classic #49926

Closed
wants to merge 3 commits into from

Conversation

itholic
Copy link
Contributor

@itholic itholic commented Feb 13, 2025

What changes were proposed in this pull request?

This PR proposes to add UnknownException for Spark Connect Python client to meet consistency for unexpected errors PySpark Connect <> Classic

Why are the changes needed?

To meet consistency between PySpark Connect and Classic. Also, UnknownErrors might more clearer than SparkConnectGrpcException for unexpected errors to end users.

Does this PR introduce any user-facing change?

No API changes, but the user-facing error improvement

How was this patch tested?

The existing CI should pass

Was this patch authored or co-authored using generative AI tooling?

No

@the-sakthi
Copy link
Member

LGTM

@HyukjinKwon
Copy link
Member

Merged to master and brnach-4.0.

HyukjinKwon added a commit that referenced this pull request Feb 18, 2025
… PySpark Connect <> Classic

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

This PR proposes to add `UnknownException` for Spark Connect Python client to meet consistency for unexpected errors PySpark Connect <> Classic

### Why are the changes needed?

To meet consistency between PySpark Connect and Classic. Also, `UnknownErrors` might more clearer than `SparkConnectGrpcException` for unexpected errors to end users.

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

No API changes, but the user-facing error improvement

### How was this patch tested?

The existing CI should pass

### Was this patch authored or co-authored using generative AI tooling?

No

Closes #49926 from itholic/unexpected_error.

Lead-authored-by: Haejoon Lee <[email protected]>
Co-authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit dc3fb50)
Signed-off-by: Hyukjin Kwon <[email protected]>
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