You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/09/17 04:47:32 UTC
[GitHub] [iceberg] samredai commented on a diff in pull request #5645: [Docs] Update drop table behavior in spark-ddl docs
samredai commented on code in PR #5645:
URL: https://github.com/apache/iceberg/pull/5645#discussion_r973539659
##########
docs/spark-ddl.md:
##########
@@ -132,12 +132,28 @@ The new table properties in the `REPLACE TABLE` command will be merged with any
## `DROP TABLE`
-To delete a table, run:
+The drop table behavior changed in 0.14.
+
+Prior to 0.14, running `DROP TABLE` would remove the table from the catalog and delete the table contents as well.
+
+From 0.14 onwards, `DROP TABLE` would only remove the table from the catalog.
+In order to delete the table contents `DROP TABLE PURGE` should be used.
+
+### `DROP TABLE`
+
+To drop the table from the catalog, run:
```sql
DROP TABLE prod.db.sample
```
+### `DROP TABLE PURGE`
+
+To delete a table, run:
Review Comment:
To make the distinction a bit clearer with `DROP TABLE`, how about rewording this to:
> To drop the table from the catalog and delete the table's contents, run:
--
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.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org