Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23467

Add a skip.trash config for HMS to skip trash when deleting external table data

    XMLWordPrintableJSON

Details

    Description

      We have an auto.purge flag, which means skip trash. It can be confusing as we have 'external.table.purge'='true' to indicate delete table data when this tblproperties is set. 

      We should make the meaning clearer by introducing a skip trash alias/option. 

      Additionally, we shall add an alias for external.table.purge, and name it external.table.autodelete, and document it more prominently, so as to maintain backward compatibility, and make the meaning of auto deletion of data more obvious. 

      The net effect of these 2 changes will be. If the user sets 

      'external.table.autodelete'='true'

      the table data will be removed when table is dropped. and if 

      'skip.trash'='true' 

      is set, HMS will not move the table data to trash folder when removing the files. This will result in faster removal, especially when underlying FS is S3. 

      Attachments

        Issue Links

          Activity

            People

              hsnusonic Yu-Wen Lai
              samuelan Sam An
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m