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

drop partition with partial specification should remove the HDFS directory corresponding to the root of PS

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If a table have multiple partitions, say (ds, hr), currently the following command:

      alter table T drop partition(ds='1');

      won't delete the directory .../T/ds=1, although all subdirectories are deleted. This could result in a lot of dangling inodes in HDFS.

        Attachments

          Activity

            People

            • Assignee:
              pauly Paul Yang
              Reporter:
              nzhang Ning Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: