cloud-fan commented on a change in pull request #30743:
URL: https://github.com/apache/spark/pull/30743#discussion_r543124594



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -127,6 +127,10 @@ trait CheckAnalysis extends PredicateHelper with 
LookupCatalog {
       case CacheTable(u: UnresolvedRelation, _, _, _) =>
         failAnalysis(s"Table or view not found for `CACHE TABLE`: 
${u.multipartIdentifier.quoted}")
 
+      case UncacheTable(u: UnresolvedRelation, _, _) =>
+        failAnalysis(
+          s"Table or view not found for `UNCACHE TABLE`: 
${u.multipartIdentifier.quoted}")

Review comment:
       After a second look, I think it's better to be consistent with INSERT 
and just say `Table or view not found: xxx`. When people run the command, they 
definitely know which command triggers the table not  found issue.




----------------------------------------------------------------
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.

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