hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Li (JIRA)" <>
Subject [jira] [Commented] (HIVE-13997) Insert overwrite directory doesn't overwrite existing files
Date Mon, 13 Jun 2016 10:45:21 GMT


Rui Li commented on HIVE-13997:

The patch deletes all existing files in dest dir if we're told to overwrite the directory.
And it adds a new test to cover this.
Please note it's not enough just to overwrite existing files - we need to delete all of them.
As in the new test, the two count( * ) should give the same result.

 One interesting finding is that, when target file exists, whether {{FileSystem::rename}}
succeeds is inconsistent among different implementations, or even platform-dependent. In my
local test, the rename succeeds for {{TestCliDriver}} which runs on local FS, but it fails
for tests that run on a mini DFS like {{TestMiniSparkOnYarnCliDriver}}.

> Insert overwrite directory doesn't overwrite existing files
> -----------------------------------------------------------
>                 Key: HIVE-13997
>                 URL:
>             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

View raw message