aokolnychyi commented on code in PR #52920:
URL: https://github.com/apache/spark/pull/52920#discussion_r2511953663
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala:
##########
@@ -203,8 +204,19 @@ class QueryExecution(
}
}
+ // refresh table versions before cache lookup
+ private val lazyTableVersionsRefreshed = LazyTry {
+ if (QueryExecution.lastExecutionId != id ||
TableRefreshUtil.shouldRefresh(commandExecuted)) {
Review Comment:
To trigger refresh if there were any query executions between this Dataset
analysis and execution. For instance, we must always refresh if there is ALTER
in between.
--
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]