yaooqinn opened a new pull request, #49050:
URL: https://github.com/apache/spark/pull/49050

   ### 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)ExecutionException`s. 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)ExecutionException`s
   
   ### How was this patch tested?
   new tests
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   <!--
   If generative AI tooling has been used in the process of authoring this 
patch, please include the
   phrase: 'Generated-by: ' followed by the name of the tool and its version.
   If no, write 'No'.
   Please refer to the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
   -->
   no


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to