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_r323598276
 
 

 ##########
 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.
 
 Review comment:
   Nit: Ditto.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to