cloud-fan commented on code in PR #43867:
URL: https://github.com/apache/spark/pull/43867#discussion_r1398710985


##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala:
##########
@@ -138,16 +138,26 @@ class DetermineTableStats(session: SparkSession) extends 
Rule[LogicalPlan] {
     relation.copy(tableStats = stats)
   }
 
-  override def apply(plan: LogicalPlan): LogicalPlan = plan resolveOperators {

Review Comment:
   Oh, actually we can update `ResolveSubquery#resolveSubQueries` to check 
`subquery.analyzed`, instead of `subquery.resolved`. The rationale is, we 
should always run the post-hoc resolution rules, even if the plan is already 
resolved.



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