-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-51899][SQL] Implement error handling rules for spark.catalog.listTables() #50696
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
Conversation
fa1f6f1 to
65dd133
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change seems good but shouldn't we still keep this though? Other exceptions might happen that doesn't inherit SparkThrowable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are risks associated with working with partial data, especially when unaware that some tables are broken. Throwing an exception instead provides a clear indication that something is wrong.
We should still do some exception handling here, but we need to determine the proper behavior on a case-by-case basis. SparkThrowable should be sufficient to capture the cases we want to handle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
1be13f7 to
71792d8
Compare
|
thanks, merging to master! |
…istTables() ### What changes were proposed in this pull request? - Revert apache#50515 - Implement error handling rules based on error conditions for Spark errors in spark.catalog.listTables(). ### Why are the changes needed? There are risks associated with working with partial data, especially when unaware that some tables are broken. Throwing an exception instead provides a clear indication that something is wrong. Instead we can use error handling rules to determine the proper behavior on a case-by-case basis. SparkThrowable should be sufficient to capture the cases we want to handle. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing tests (e.g. `build/sbt "sql/testOnly *CatalogSuite"`, `build/sbt "hive/testOnly *HiveDDLSuite"`) ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50696 from heyihong/SPARK-51899. Authored-by: Yihong He <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
What changes were proposed in this pull request?
Why are the changes needed?
There are risks associated with working with partial data, especially when unaware that some tables are broken. Throwing an exception instead provides a clear indication that something is wrong.
Instead we can use error handling rules to determine the proper behavior on a case-by-case basis. SparkThrowable should be sufficient to capture the cases we want to handle.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests (e.g.
build/sbt "sql/testOnly *CatalogSuite",build/sbt "hive/testOnly *HiveDDLSuite")Was this patch authored or co-authored using generative AI tooling?
No