cloud-fan commented on a change in pull request #31524:
URL: https://github.com/apache/spark/pull/31524#discussion_r572036282
##########
File path: docs/sql-ref-syntax-ddl-alter-table.md
##########
@@ -187,6 +194,8 @@ ALTER TABLE table_identifier [ partition_spec ] SET SERDE
serde_class_name
`ALTER TABLE SET` command can also be used for changing the file location and
file format for
existing tables.
+If the table is cached, the `ALTER TABLE .. SET LOCATION` command clears
cached data of the table and all its dependents that refer to it. The cache
will be lazily filled when the next time the table or the dependents are
accessed.
Review comment:
We should probably put this in the beginning only once:
```
### Description
`ALTER TABLE` statement changes the schema or properties of a table. If the
table is cached ...
```
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]