Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/13156#discussion_r63760124
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/internal/SessionState.scala ---
@@ -163,6 +163,9 @@ private[sql] class SessionState(sparkSession:
SparkSession) {
def executePlan(plan: LogicalPlan): QueryExecution = new
QueryExecution(sparkSession, plan)
def refreshTable(tableName: String): Unit = {
+ // Different from SparkSession.catalog.refreshTable, this API only
refreshes the metadata.
+ // It does not reload the cached data. That means, if this table is
cached as
+ // an InMemoryRelation, we do not refresh the cached data.
--- End diff --
Let me know if we need to remove the API `refreshTable` in `SessionState`.
So far, it is not being used by any test case. Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]