Description
HIVE-7100 introduced a way to skip the trash directory, when deleting table-data, while dropping tables.
In HIVE-9083/HIVE-9086, I extended this to work when partitions are dropped.
Here, I propose a table-parameter ("auto.purge") to set up tables to skip-trash when table/partition data is deleted, without needing to say "PURGE" on the Hive CLI. Apropos, on dropTable() and dropPartition(), table data is deleted directly (and not moved to trash) if the following hold true:
- The table is MANAGED.
- The deleteData parameter to the HMSC.drop*() methods is true.
- Either PURGE is explicitly specified on the command-line (or rather, "ifPurge" is set in the environment context, OR
- TBLPROPERTIES contains "auto.purge"="true"
Attachments
Attachments
Issue Links
- depends upon
-
HIVE-9086 Add language support to PURGE data while dropping partitions.
- Closed
- is related to
-
HIVE-15880 Allow insert overwrite and truncate table query to use auto.purge table property
- Closed
- relates to
-
HIVE-7100 Users of hive should be able to specify skipTrash when dropping tables.
- Closed