Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/16672#discussion_r100703121
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala ---
@@ -754,6 +754,8 @@ case class AlterTableSetLocationCommand(
// No partition spec is specified, so we set the location for the
table itself
catalog.alterTable(table.withNewStorage(locationUri =
Some(location)))
}
+
+ catalog.refreshTable(table.identifier)
--- End diff --
This is not a right fix. Please see the discussion in a separate PR:
https://github.com/apache/spark/pull/16514#issuecomment-271232337
Please focus on the scope of this PR. 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]