[ https://issues.apache.org/jira/browse/HIVE-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920696#action_12920696 ]
He Yongqiang commented on HIVE-1707: ------------------------------------ Yes. We should delete the old data. Even today, if two tables/partitions share the same location, one delete will delete the data. Will upload a patch soon. The main problem here is to add testcases. (I can do tests on internal clusters.) > bug when different partitions are present in different dfs > ---------------------------------------------------------- > > Key: HIVE-1707 > URL: https://issues.apache.org/jira/browse/HIVE-1707 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Assignee: He Yongqiang > Fix For: 0.7.0 > > > The following does not work: > create table T -> default location dfs1 > insert overwrite T partition (ds='1') select * from src; > alter table T location 'dfs2'; > insert overwrite T partition (ds='1') select * from src; > It tries to insert back in dfs1 - due to which the move task fails. > It would be cleaner to keep the same semantics as fileformat - whenever a > partition is being inserted into, it > inherits the properties from the table. So, after the insert, the partition > should belong to dfs1. > It does not matter whether the partition exists before or not,. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.