Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/19252#discussion_r139569908
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
---
@@ -377,6 +377,8 @@ class SessionCatalog(
requireDbExists(db)
requireTableExists(tableIdentifier)
externalCatalog.alterTableStats(db, table, newStats)
+ // Invalidate the table relation cache
+ refreshTable(identifier)
--- End diff --
Could you remove the unneeded `refreshTable` calls in `AnalyzeTableCommand`
and `AnalyzeColumnCommand`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]