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

Drop-partition for multi-level partition fails, if data does not exist.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 3.0.0
    • 2.2.1, 2.3.2, 2.4.0, 3.0.0
    • Metastore
    • None

    Description

      Raising this on behalf of cdrome and selinazh.

      Here's how to reproduce the problem:

      CREATE TABLE foobar ( foo STRING, bar STRING ) PARTITIONED BY ( dt STRING, region STRING ) STORED AS RCFILE LOCATION '/tmp/foobar';
      
      ALTER TABLE foobar ADD PARTITION ( dt='1', region='A' ) ;
      
      dfs -rm -R -skipTrash /tmp/foobar/dt=1;
      
      ALTER TABLE foobar DROP PARTITION ( dt='1' );
      

      This causes a client-side error as follows:

      15/02/26 23:08:32 ERROR exec.DDLTask: org.apache.hadoop.hive.ql.metadata.HiveException: Unknown error. Please check logs.
      

      Attachments

        1. HIVE-17472.1.patch
          1 kB
          Mithun Radhakrishnan
        2. HIVE-17472.2.patch
          4 kB
          Mithun Radhakrishnan
        3. HIVE-17472.2-branch-2.patch
          4 kB
          Mithun Radhakrishnan
        4. HIVE-17472.3-branch-2.patch
          4 kB
          Mithun Radhakrishnan
        5. HIVE-17472.3.patch
          4 kB
          Mithun Radhakrishnan
        6. HIVE-17472.3-branch-2.2.patch
          4 kB
          Mithun Radhakrishnan

        Activity

          People

            cdrome Chris Drome
            mithun Mithun Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: