Skip to content

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 <haejoon.lee@databricks.com>
Co-authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit dc3fb50)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Pajaraja pushed a commit to Pajaraja/spark that referenced this pull request Mar 6, 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 apache#49926 from itholic/unexpected_error.

Lead-authored-by: Haejoon Lee <haejoon.lee@databricks.com>
Co-authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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