hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13997) Insert overwrite directory doesn't overwrite existing files
Date Fri, 17 Jun 2016 18:43:05 GMT

    [ https://issues.apache.org/jira/browse/HIVE-13997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336669#comment-15336669
] 

Ashutosh Chauhan commented on HIVE-13997:
-----------------------------------------

Won't https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L3165
delete the directory already. This later calls moveFile() If it doesn't we should enhance
logic in replaceFiles() to do the deletes, instead of in moveFile()

> Insert overwrite directory doesn't overwrite existing files
> -----------------------------------------------------------
>
>                 Key: HIVE-13997
>                 URL: https://issues.apache.org/jira/browse/HIVE-13997
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Rui Li
>            Assignee: Rui Li
>         Attachments: HIVE-13997.1.patch
>
>
> Can be easily reproduced by running {{INSERT OVERWRITE DIRECTORY}} to the same dir twice.



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

Mime
View raw message