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

Ajith Shetty commented on HIVE-13997:
-------------------------------------

hive insert overwrite directory only overwrite direct path of generated file 
not the directory.

-rwxrwxrwx 3 myvm users 1163 2016-11-24 03:11 /mytest/warehouse/mytable/000000_0
-rwxrwxrwx 3 myvm users 0 2016-11-24 03:09 /mytest/warehouse/mytable/000000_1
-rwxrwxrwx 3 myvm users 0 2016-11-24 03:09 /mytest/warehouse/mytable/000000_2
-rwxrwxrwx 3 myvm users 0 2016-11-24 03:09 /mytest/warehouse/mytable/000000_3

Expected insert overwrite command to overwrite the whole directory but its only 
updating 000000_0 and not touching other files in the path.

Im using hive-1.1.0-cdh5.5.1. Has this issue been fixed in this version?

Thanks

> 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
>          Components: Query Processor
>    Affects Versions: 2.1.0
>            Reporter: Rui Li
>            Assignee: Rui Li
>             Fix For: 2.2.0, 2.1.1
>
>         Attachments: HIVE-13997.1.patch, HIVE-13997.2.patch, 
> HIVE-13997.2.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)

Reply via email to