Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C3A8200B67 for ; Tue, 16 Aug 2016 12:07:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B0E5160A76; Tue, 16 Aug 2016 10:07:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2C98160AA8 for ; Tue, 16 Aug 2016 12:07:21 +0200 (CEST) Received: (qmail 92062 invoked by uid 500); 16 Aug 2016 10:07:20 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 92046 invoked by uid 99); 16 Aug 2016 10:07:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 10:07:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 83B042C02A4 for ; Tue, 16 Aug 2016 10:07:20 +0000 (UTC) Date: Tue, 16 Aug 2016 10:07:20 +0000 (UTC) From: "Oleksiy Sayankin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14544) LOAD DATA statement appends .0 to the partition name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 10:07:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleksiy Sayankin updated HIVE-14544: ------------------------------------ Affects Version/s: 2.1.0 > LOAD DATA statement appends .0 to the partition name > ---------------------------------------------------- > > Key: HIVE-14544 > URL: https://issues.apache.org/jira/browse/HIVE-14544 > Project: Hive > Issue Type: Bug > Affects Versions: 2.1.0 > Reporter: Oleksiy Sayankin > Assignee: Oleksiy Sayankin > Fix For: 2.1.0 > > Attachments: HIVE-14544.1.patch > > > *STEP 1. Create file with data:* > {noformat} > echo 1 > /tmp/data.file > {noformat} > *STEP 2. Create table in hive:* > {noformat} > CREATE TABLE `issue` (`id` INT) PARTITIONED BY (`ts` TIMESTAMP); > {noformat} > *STEP 3. Insert data into table:* > {noformat} > SET hive.exec.dynamic.partition.mode=nonstrict; > INSERT INTO TABLE `issue` PARTITION (`ts`) VALUES (1,'1970-01-01 00:00:00'),(2,'1980-01-01 00:00:00'),(3,'1990-01-01 00:00:00'); > {noformat} > *STEP 4. Load data into table using hive:* > {noformat} > LOAD DATA LOCAL INPATH '/tmp/data.file' OVERWRITE INTO TABLE `issue` PARTITION (`ts`='2000-01-01 00:00:00'); > {noformat} > *STEP 5. Run show partitions query:* > {noformat} > SHOW PARTITIONS `issue`; > {noformat} > *EXPECTED RESULT:* > {noformat} > ts=1970-01-01 00%3A00%3A00 > ts=1980-01-01 00%3A00%3A00 > ts=1990-01-01 00%3A00%3A00 > ts=2000-01-01 00%3A00%3A00 > {noformat} > *ACTUAL RESULT* > We've gotten partitions with different precision > {noformat} > ts=1970-01-01 00%3A00%3A00 > ts=1980-01-01 00%3A00%3A00 > ts=1990-01-01 00%3A00%3A00 > ts=2000-01-01 00%3A00%3A00.0 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)