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-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst #44263

Closed
wants to merge 5 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Dec 8, 2023

What changes were proposed in this pull request?

In the PR, I propose to replace all IllegalStateException exception in catalyst by SparkException.internalError.

Why are the changes needed?

This is a part of migration onto new error framework and error classes.

Does this PR introduce any user-facing change?

No, users shouldn't face to IllegalStateException in regular cases.

How was this patch tested?

Using existing GAs.

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

No.

@github-actions github-actions bot added the SQL label Dec 8, 2023
@MaxGekk MaxGekk changed the title [WIP][SQL] Replace IllegalStateException by SparkException.internalError in catalyst [WIP][SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst Dec 8, 2023
@MaxGekk MaxGekk changed the title [WIP][SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst [SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst Dec 8, 2023
@MaxGekk MaxGekk marked this pull request as ready for review December 8, 2023 17:44
@MaxGekk MaxGekk changed the title [SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst [WIP][SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst Dec 8, 2023
@MaxGekk MaxGekk marked this pull request as draft December 8, 2023 21:06
@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 9, 2023

All tests passed: https://github.com/MaxGekk/spark/actions/runs/7149112248/job/19473080029

Merging to master. Thank you, @LuciferYang @cloud-fan for review.

@MaxGekk MaxGekk marked this pull request as ready for review December 9, 2023 09:31
@MaxGekk MaxGekk changed the title [WIP][SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst [SPARK-46333][SQL] Replace IllegalStateException by SparkException.internalError in catalyst Dec 9, 2023
@MaxGekk MaxGekk closed this in 8e95929 Dec 9, 2023
dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
….internalError` in catalyst

### What changes were proposed in this pull request?
In the PR, I propose to replace all `IllegalStateException` exception in `catalyst` by `SparkException.internalError`.

### Why are the changes needed?
This is a part of migration onto new error framework and error classes.

### Does this PR introduce _any_ user-facing change?
No, users shouldn't face to `IllegalStateException` in regular cases.

### How was this patch tested?
Using existing GAs.

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

Closes apache#44263 from MaxGekk/bind-ref-internal-error.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants