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 F3BF5104EF for ; Thu, 7 Nov 2013 19:41:18 +0000 (UTC) Received: (qmail 58554 invoked by uid 500); 7 Nov 2013 19:41:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 58474 invoked by uid 500); 7 Nov 2013 19:41:17 -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 58418 invoked by uid 500); 7 Nov 2013 19:41:17 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 58402 invoked by uid 99); 7 Nov 2013 19:41:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Nov 2013 19:41:17 +0000 Date: Thu, 7 Nov 2013 19:41:17 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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:comment-tabpanel&focusedCommentId=13816332#comment-13816332 ] Sergey Shelukhin commented on HIVE-5686: ---------------------------------------- build failures is a known issue, already fixed elsewhere, not related > 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.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)