Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D534910D31 for ; Fri, 31 Jan 2014 23:16:39 +0000 (UTC) Received: (qmail 35974 invoked by uid 500); 31 Jan 2014 23:16:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 35874 invoked by uid 500); 31 Jan 2014 23:16:35 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 35838 invoked by uid 500); 31 Jan 2014 23:16:32 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 35766 invoked by uid 99); 31 Jan 2014 23:16:30 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 23:16:30 +0000 Date: Fri, 31 Jan 2014 23:16:30 +0000 (UTC) From: "Prasad Mujumdar (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6209) 'LOAD DATA INPATH ... OVERWRITE ..' doesn't overwrite current data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-6209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Prasad Mujumdar updated HIVE-6209: ---------------------------------- Resolution: Fixed Fix Version/s: 0.13.0 Status: Resolved (was: Patch Available) Patch committed to trunk. Thanks for your contribution Szehon! > 'LOAD DATA INPATH ... OVERWRITE ..' doesn't overwrite current data > ------------------------------------------------------------------ > > Key: HIVE-6209 > URL: https://issues.apache.org/jira/browse/HIVE-6209 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Szehon Ho > Assignee: Szehon Ho > Fix For: 0.13.0 > > Attachments: HIVE-6209.1.patch, HIVE-6209.patch > > > In case where user loads data into table using overwrite, using a different file, it is not being overwritten. > {code} > $ hdfs dfs -cat /tmp/data > aaa > bbb > ccc > $ hdfs dfs -cat /tmp/data2 > ddd > eee > fff > $ hive > hive> create table test (id string); > hive> load data inpath '/tmp/data' overwrite into table test; > hive> select * from test; > aaa > bbb > ccc > hive> load data inpath '/tmp/data2' overwrite into table test; > hive> select * from test; > aaa > bbb > ccc > ddd > eee > fff > {code} > It seems it is broken by HIVE-3756 which added another condition to whether "rmr" should be run on old directory, and skips in this case. > There is a workaround of set fs.hdfs.impl.disable.cache=true; > which sabotages this condition, but this condition should be removed in long-term. -- This message was sent by Atlassian JIRA (v6.1.5#6160)