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

Add option for removing intermediate directory for partition, which is empty

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      For deeply nested partitioned table, intermediate directories are not removed even if there is no partitions in it by removing them.

      /deep_part/c=09/d=01
      /deep_part/c=09/d=01/e=01
      /deep_part/c=09/d=01/e=02
      /deep_part/c=09/d=02
      /deep_part/c=09/d=02/e=01
      /deep_part/c=09/d=02/e=02
      

      After removing partition (c='09'), directory remains like this,

      /deep_part/c=09/d=01
      /deep_part/c=09/d=02
      

        Attachments

        1. HIVE-5220.D12729.1.patch
          3 kB
          Phabricator
        2. D12729.2.patch
          2 kB
          Phabricator

          Issue Links

            Activity

              People

              • Assignee:
                navis Navis Ryu
                Reporter:
                navis Navis Ryu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: