dilipbiswal commented on a change in pull request #25533:
[SPARK-28798][DOC][SQL]Document DROP TABLE/VIEW statement in SQL Reference.
URL: https://github.com/apache/spark/pull/25533#discussion_r323598753
##########
File path: docs/sql-ref-syntax-ddl-drop-table.md
##########
@@ -19,4 +19,70 @@ license: |
limitations under the License.
---
-**This page is under construction**
+### Description
+
+Deletes the table and removes the directory associated with this table from
the file system
+if this is not `EXTERNAL` table. If the table is not present it throws
exception.
+
+In case of External table it only deletes the metadata from metastore database
and it will not remove the directory
+associated with this table.
+
+### Syntax
+{% highlight sql %}
+DROP TABLE [IF EXISTS] [database_name.]table_name
+{% endhighlight %}
+
+### Parameter
+<dl>
+ <dt><code><em>IF EXISTS</em></code></dt>
+ <dd>
+ If specified, no exception is thrown when the table does not exist.
+ </dd>
+ <dt><code><em>database_name</em></code></dt>
+ <dd>
+ Database name where table is present.
+ </dd>
+ <dt><code><em>table_name</em></code></dt>
+ <dd>
+ table name to be dropped.
+ </dd>
+</dl>
+
+### Example
+{% highlight sql %}
+-- Assumes a table name `employeetable` exist.
+DROP TABLE employeetable;
++---------+--+
+| Result |
Review comment:
Can you please double check this ? The format looks a bit odd. Please check
the rest of
the output please.
----------------------------------------------------------------
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]