Skip to content

[SPARK-46226][PYTHON] Migrate all remaining RuntimeError into PySpark error framework.#44143

Closed
itholic wants to merge 7 commits intoapache:masterfrom
itholic:session_custom_error
Closed

[SPARK-46226][PYTHON] Migrate all remaining RuntimeError into PySpark error framework.#44143
itholic wants to merge 7 commits intoapache:masterfrom
itholic:session_custom_error

Conversation

@itholic
Copy link
Copy Markdown
Contributor

@itholic itholic commented Dec 4, 2023

What changes were proposed in this pull request?

This PR proposes to migrate all remaining RuntimeError from pyspark/sql/* into PySpark error framework, PySparkRuntimeError with assigning dedicated error classes. Total 30 RuntimeErrors are managed.

Why are the changes needed?

To improve the error handling in PySpark.

Does this PR introduce any user-facing change?

No API changes, but the user-facing error messages will be improved.

How was this patch tested?

The existing CI should pass.

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

No.

@github-actions github-actions bot added the CORE label Dec 4, 2023
@itholic itholic changed the title [SPARK-46226][PYTHON] Migrate all remaining RuntimeErrors into PySpark error framework. [SPARK-46226][PYTHON] Migrate all remaining RuntimeError into PySpark error framework. Dec 4, 2023
@itholic
Copy link
Copy Markdown
Contributor Author

itholic commented Dec 6, 2023

This is the last one migrating error class that has not been reviewed yet. cc @HyukjinKwon @dongjoon-hyun Would you mind taking a look when you find some time 😺

@HyukjinKwon
Copy link
Copy Markdown
Member

Merged to master.

dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
…rk error framework

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

This PR proposes to migrate all remaining `RuntimeError` from `pyspark/sql/*` into PySpark error framework, `PySparkRuntimeError` with assigning dedicated error classes. Total 30 `RuntimeError`s are managed.

### Why are the changes needed?

To improve the error handling in PySpark.

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

No API changes, but the user-facing error messages will be improved.

### How was this patch tested?

The existing CI should pass.

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

No.

Closes apache#44143 from itholic/session_custom_error.

Authored-by: Haejoon Lee <haejoon.lee@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@itholic itholic deleted the session_custom_error branch January 1, 2024 23:41
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.

2 participants