Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-3796

Alter table recover partitions fails to detect changes in parent path

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Impala 2.3.0
    • Fix Version/s: None
    • Component/s: Catalog
    • Labels:

      Description

      If you have a table located at /db/table
      with partitions /db/table/partition=1

      and then move the table location to /db2/table/ along with the partitions and their data

      the location of the partitions will be incorrect when you list them, still pointing to /db/table/partition=1

      running a "Alter table recover partitions" seems to check only for the existence of partition=1 in the current table location, and ignores that the prior path has changed. So when you run a query it will not find those partitions and report 0 rows.

      it should be noted that hive has the same behavior.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                PeterEbert Peter Ebert
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: