cloud-fan commented on a change in pull request #31273:
URL: https://github.com/apache/spark/pull/31273#discussion_r568439758
##########
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:
`CacheTable` is tricky as the query can be complex and needs to go
through the entire analyzer, `UncacheTable` should be fine as we can just
update a few rules to handle it, which is similar to 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]