[ 
https://issues.apache.org/jira/browse/HIVE-13616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Aihua Xu updated HIVE-13616:
----------------------------
    Status: Patch Available  (was: Open)

Patch-1: when the table is just renamed, the old column stats are carried over 
to the new table. In the patch, we collect the old column stats and remove 
unwanted column stats, then alter table to the new one and update to new column 
stats (since the table needs to exist when updating the stats).

Seems better to do a update to the existing column stats rather than deleting 
and inserting. But I will file followup jiras to handle that since it involves 
the interface change.

> Investigate renaming a table without invalidating the column stats
> ------------------------------------------------------------------
>
>                 Key: HIVE-13616
>                 URL: https://issues.apache.org/jira/browse/HIVE-13616
>             Project: Hive
>          Issue Type: Improvement
>          Components: Metastore
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>         Attachments: HIVE-13616.1.patch
>
>
> Right now when we rename a table, we clear the column stats rather than 
> updating it (HIVE-9720) since ObjectStore uses DN to talk to DB. Investigate 
> the possibility that if we can achieve updating the stats without rescanning 
> the whole table.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to