Skip to content

[SPARK-39187][SQL][3.3] Remove SparkIllegalStateException#36558

Closed
MaxGekk wants to merge 1 commit intoapache:branch-3.3from
MaxGekk:remove-SparkIllegalStateException-3.3
Closed

[SPARK-39187][SQL][3.3] Remove SparkIllegalStateException#36558
MaxGekk wants to merge 1 commit intoapache:branch-3.3from
MaxGekk:remove-SparkIllegalStateException-3.3

Conversation

@MaxGekk
Copy link
Copy Markdown
Member

@MaxGekk MaxGekk commented May 16, 2022

What changes were proposed in this pull request?

Remove SparkIllegalStateException and replace it by IllegalStateException where it was used.

This is a backport of #36550.

Why are the changes needed?

To improve code maintenance and be consistent to other places where IllegalStateException is used in illegal states (for instance, see #36524). After the PR #36500, the exception is substituted by SparkException w/ the INTERNAL_ERROR error class.

Does this PR introduce any user-facing change?

No. Users shouldn't face to the exception in regular cases.

How was this patch tested?

By running the affected test suites:

$ build/sbt "sql/test:testOnly *QueryExecutionErrorsSuite*"
$ build/sbt "test:testOnly *ArrowUtilsSuite"

Authored-by: Max Gekk max.gekk@gmail.com
Signed-off-by: Max Gekk max.gekk@gmail.com
(cherry picked from commit 1a90512)
Signed-off-by: Max Gekk max.gekk@gmail.com

Remove `SparkIllegalStateException` and replace it by `IllegalStateException` where it was used.

To improve code maintenance and be consistent to other places where `IllegalStateException` is used in illegal states (for instance, see apache#36524). After the PR apache#36500, the exception is substituted by `SparkException` w/ the `INTERNAL_ERROR` error class.

No. Users shouldn't face to the exception in regular cases.

By running the affected test suites:
```
$ build/sbt "sql/test:testOnly *QueryExecutionErrorsSuite*"
$ build/sbt "test:testOnly *ArrowUtilsSuite"
```

Closes apache#36550 from MaxGekk/remove-SparkIllegalStateException.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
(cherry picked from commit 1a90512)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@MaxGekk MaxGekk marked this pull request as ready for review May 16, 2022 08:31
@MaxGekk
Copy link
Copy Markdown
Member Author

MaxGekk commented May 16, 2022

Merging to 3.3. Thank you, @HyukjinKwon for review.

MaxGekk added a commit that referenced this pull request May 16, 2022
### What changes were proposed in this pull request?
Remove `SparkIllegalStateException` and replace it by `IllegalStateException` where it was used.

This is a backport of #36550.

### Why are the changes needed?
To improve code maintenance and be consistent to other places where `IllegalStateException` is used in illegal states (for instance, see #36524). After the PR #36500, the exception is substituted by `SparkException` w/ the `INTERNAL_ERROR` error class.

### Does this PR introduce _any_ user-facing change?
No. Users shouldn't face to the exception in regular cases.

### How was this patch tested?
By running the affected test suites:
```
$ build/sbt "sql/test:testOnly *QueryExecutionErrorsSuite*"
$ build/sbt "test:testOnly *ArrowUtilsSuite"
```

Authored-by: Max Gekk <max.gekkgmail.com>
Signed-off-by: Max Gekk <max.gekkgmail.com>
(cherry picked from commit 1a90512)
Signed-off-by: Max Gekk <max.gekkgmail.com>

Closes #36558 from MaxGekk/remove-SparkIllegalStateException-3.3.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@MaxGekk MaxGekk closed this May 16, 2022
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