Skip to content

Conversation

@heyihong
Copy link
Contributor

@heyihong heyihong commented Apr 24, 2025

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

@github-actions github-actions bot added the SQL label Apr 24, 2025
@heyihong heyihong changed the title [SPARK-51899] Implement an error allowlist for spark.catalog.listTables() [SPARK-51899][SQL] Implement an error allowlist for spark.catalog.listTables() Apr 24, 2025
@heyihong heyihong force-pushed the SPARK-51899 branch 2 times, most recently from fa1f6f1 to 65dd133 Compare April 24, 2025 12:12
@heyihong heyihong changed the title [SPARK-51899][SQL] Implement an error allowlist for spark.catalog.listTables() [WIP][SPARK-51899][SQL] Implement an error allowlist for spark.catalog.listTables() Apr 24, 2025
Copy link
Member

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.

Copy link
Contributor Author

@heyihong heyihong Apr 25, 2025

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.

Copy link
Member

Choose a reason for hiding this comment

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

👌

@heyihong heyihong force-pushed the SPARK-51899 branch 2 times, most recently from 1be13f7 to 71792d8 Compare April 25, 2025 09:41
@heyihong heyihong changed the title [WIP][SPARK-51899][SQL] Implement an error allowlist for spark.catalog.listTables() [WIP][SPARK-51899][SQL] Implement error handling rules for spark.catalog.listTables() Apr 25, 2025
@heyihong heyihong requested a review from HyukjinKwon April 25, 2025 09:58
@heyihong heyihong changed the title [WIP][SPARK-51899][SQL] Implement error handling rules for spark.catalog.listTables() [SPARK-51899][SQL] Implement error handling rules for spark.catalog.listTables() Apr 25, 2025
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 4391538 Apr 28, 2025
yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants