aokolnychyi commented on code in PR #52920:
URL: https://github.com/apache/spark/pull/52920#discussion_r2499609284
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala:
##########
@@ -203,8 +204,15 @@ class QueryExecution(
}
}
+ // refresh table versions before looking up cache
Review Comment:
I believe we need a new stage because this must be done after analysis but
before we normalize the plan for cache lookup. It would be great to use
`FinishAnalysis` in the optimizer but I feel like it is too late.
I also worry about just doing this refresh all the time. We may remember the
analysis finish time and only refresh if it is older than 100ms or so to not
refresh unnecessary.
Thoughts?
--
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]