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-46332][SQL] Migrate CatalogNotFoundException to the error class CATALOG_NOT_FOUND #44259

Closed
wants to merge 6 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 migrate the CatalogNotFoundException exception to the new error class CATALOG_NOT_FOUND, improve the format of the exception message, and prohibit creation of the exception without the error class.

Why are the changes needed?

This is a part of the migration process onto error classes and new error framework. The changes improve user experience w/ Spark SQL, and make CatalogNotFoundException consistent to other Spark exceptions.

Does this PR introduce any user-facing change?

Yes, if user's code depends on the error message format of CatalogNotFoundException.

How was this patch tested?

By running the affected test suites:

$ build/sbt "core/testOnly *SparkThrowableSuite"

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] Migrate CatalogNotFoundException to the error class CATALOG_NOT_FOUND [WIP][SPARK-46332][SQL] Migrate CatalogNotFoundException to the error class CATALOG_NOT_FOUND Dec 8, 2023
@MaxGekk MaxGekk changed the title [WIP][SPARK-46332][SQL] Migrate CatalogNotFoundException to the error class CATALOG_NOT_FOUND [SPARK-46332][SQL] Migrate CatalogNotFoundException to the error class CATALOG_NOT_FOUND Dec 8, 2023
@MaxGekk MaxGekk marked this pull request as ready for review December 8, 2023 12:51
@MaxGekk
Copy link
Member Author

MaxGekk commented Dec 8, 2023

All tests passed: https://github.com/MaxGekk/spark/actions/runs/7141477462/job/19458149893

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @MaxGekk .
Merged to master for Apache Spark 4.0.0.

dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
…ass `CATALOG_NOT_FOUND`

### What changes were proposed in this pull request?
In the PR, I propose to migrate the `CatalogNotFoundException` exception to the new error class `CATALOG_NOT_FOUND`, improve the format of the exception message, and prohibit creation of the exception without the error class.

### Why are the changes needed?
This is a part of the migration process onto error classes and new error framework. The changes improve user experience w/ Spark SQL, and make `CatalogNotFoundException` consistent to other Spark exceptions.

### Does this PR introduce _any_ user-facing change?
Yes, if user's code depends on the error message format of `CatalogNotFoundException`.

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

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

Closes apache#44259 from MaxGekk/catalog-plugin-not-found.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
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