Skip to content

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Dec 4, 2024

What changes were proposed in this pull request?

This PR unwraps SparkThrowable in (Unchecked)ExecutionException thrown by tableRelationCache

Why are the changes needed?

The guava cache library wraps exceptions thrown by c: Callable[LogicalPlan] as (Unchecked)ExecutionExceptions. This makes our code paths of special handling for SparkThrowable inoperative. For example, this kind of error in spark-sql cli is very lengthy.

Does this PR introduce any user-facing change?

Yes, when you visit an invalid plan in the table cache layer, you will get the original spark error instead of getting them under (Unchecked)ExecutionExceptions

How was this patch tested?

new tests

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

no

@github-actions github-actions bot added the SQL label Dec 4, 2024
yaooqinn and others added 3 commits December 4, 2024 17:48
…/v1/AlterTableSetLocationSuite.scala

Co-authored-by: Maxim Gekk <[email protected]>
…/v1/AlterTableSetLocationSuite.scala

Co-authored-by: Maxim Gekk <[email protected]>
@MaxGekk
Copy link
Member

MaxGekk commented Dec 4, 2024

+1, LGTM. Merging to master.
Thank you, @yaooqinn.

@MaxGekk MaxGekk closed this in f1eecd3 Dec 4, 2024
@yaooqinn yaooqinn deleted the SPARK-50485 branch December 5, 2024 02:08
@yaooqinn
Copy link
Member Author

yaooqinn commented Dec 5, 2024

Thank you, @MaxGekk

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.

2 participants