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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.13.0
    • Query Processor
    • 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. D12729.2.patch
          2 kB
          Phabricator
        2. HIVE-5220.D12729.1.patch
          3 kB
          Phabricator

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: