Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/15896#discussion_r88342802
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala ---
@@ -420,7 +421,11 @@ class CatalogImpl(sparkSession: SparkSession) extends
Catalog {
* @since 2.0.0
*/
override def uncacheTable(tableName: String): Unit = {
- sparkSession.sharedState.cacheManager.uncacheQuery(query =
sparkSession.table(tableName))
+ try {
+ sparkSession.sharedState.cacheManager.uncacheQuery(query =
sparkSession.table(tableName))
+ } catch {
+ case _: NoSuchTableException => // do nothing
--- End diff --
In the PR https://github.com/apache/spark/pull/15682, we identified an
issue when we try to uncache a view that containing a table that has been
dropped. We are not issuing `NoSuchTableException`. Instead. Instead, we issue
an `AnalysisException`. That means, this might not cover all the senario. Do
you want to cover that case in this PR?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]