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

Renaming tables leaves stat store in stale state

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Metastore
    • Labels:
      None

      Description

      Renaming tables does not alter the data stored in the TAB_COL_STATS. So if a user renames table1 to table2 they will also need to re-compute statistics against this table.

      This is an inconvenience and puts the metastore in an inconsistent state. It neither drops or updates TAB_COL_STATS.TABLE_NAME. So you will have an entry for both the old table name and the new table name.

      This lingering data is also inherited by any table that assumes the previously used table name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rnpridgeon Ryan Pridgeon
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: