wangyum commented on a change in pull request #22721:
[SPARK-19784][SPARK-25403][SQL] Refresh the table even table stats is empty
URL: https://github.com/apache/spark/pull/22721#discussion_r363190847
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/CommandUtils.scala
##########
@@ -50,6 +50,9 @@ object CommandUtils extends Logging {
catalog.alterTableStats(table.identifier, Some(newStats))
} else if (table.stats.nonEmpty) {
catalog.alterTableStats(table.identifier, None)
+ } else {
+ // In other cases, we still need to invalidate the table relation cache.
Review comment:
Yes.
https://github.com/apache/spark/blob/1743d5be7f74a5a7ab28dbc5c0f431cf2c2dfbc0/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala#L409-L422
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]