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 D273210139 for ; Thu, 14 Nov 2013 23:13:21 +0000 (UTC) Received: (qmail 86915 invoked by uid 500); 14 Nov 2013 23:13:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 86861 invoked by uid 500); 14 Nov 2013 23:13:21 -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 86853 invoked by uid 500); 14 Nov 2013 23:13:21 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 86849 invoked by uid 99); 14 Nov 2013 23:13:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Nov 2013 23:13:21 +0000 Date: Thu, 14 Nov 2013 23:13:21 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5686) partition column type validation doesn't quite work for dates 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-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-5686: ----------------------------------- Status: Open (was: Patch Available) > partition column type validation doesn't quite work for dates > ------------------------------------------------------------- > > Key: HIVE-5686 > URL: https://issues.apache.org/jira/browse/HIVE-5686 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Attachments: HIVE-5686.01.patch, HIVE-5686.02.patch, HIVE-5686.03.patch, HIVE-5686.03.patch, HIVE-5686.patch > > > Another interesting issue... > {noformat} > hive> create table zzzzz(c string) partitioned by (i date,j date); > OK > Time taken: 0.099 seconds > hive> alter table zzzzz add partition (i='2012-01-01', j='foo'); > FAILED: SemanticException [Error 10248]: Cannot add partition column j of type string as it cannot be converted to type date > hive> alter table zzzzz add partition (i='2012-01-01', j=date 'foo'); > OK > Time taken: 0.119 seconds > {noformat} > The fake date is caught in normal queries: > {noformat} > hive> select * from zzzzz where j == date 'foo'; > FAILED: SemanticException Unable to convert date literal string to date value. > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)