cloud-fan commented on a change in pull request #31273:
URL: https://github.com/apache/spark/pull/31273#discussion_r568438630
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/CacheManager.scala
##########
@@ -159,11 +159,19 @@ class CacheManager extends Logging with
AdaptiveSparkPlanHelper {
plan: LogicalPlan,
cascade: Boolean,
blocking: Boolean = false): Unit = {
+ val analyzedPlan = if (plan.resolved) {
+ plan
+ } else {
+ val qe = spark.sessionState.executePlan(plan)
+ qe.assertAnalyzed()
Review comment:
Thanks for the reminds. We can't make the table the child of
`CacheTable/UncacheTable`, but we can resolve the table in the analyzer like
what we did for INSERT?
----------------------------------------------------------------
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]