srowen commented on a change in pull request #25590: [SPARK-28791] [DOC]
Documentation for Alter table Command
URL: https://github.com/apache/spark/pull/25590#discussion_r337801801
##########
File path: docs/sql-ref-syntax-ddl-alter-table.md
##########
@@ -19,4 +19,240 @@ license: |
limitations under the License.
---
-**This page is under construction**
+### Description
+`ALTER TABLE` statement changes the schema or properties of a table.
+
+### RENAME
+`ALTER TABLE RENAME` statement changes the table name of an existing table in
the database.
+
+#### Syntax
+{% highlight sql %}
+ALTER TABLE [db_name.]old_table_name RENAME TO [db_name.]new_table_name
+
+ALTER TABLE table_name PARTITION partition_spec RENAME TO PARTITION
partition_spec;
+
+{% endhighlight %}
+
+#### Parameters
+<dl>
+ <dt><code><em>old_table_name</em></code></dt>
+ <dd>Name of an existing table.</dd>
+</dl>
+<dl>
+ <dt><code><em>db_name</em></code></dt>
+ <dd>Name of the exsisting database.</dd>
Review comment:
Small nit: extra space here
----------------------------------------------------------------
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]