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 18A9B100DA for ; Thu, 7 Nov 2013 18:43:18 +0000 (UTC) Received: (qmail 47121 invoked by uid 500); 7 Nov 2013 18:43:17 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 47074 invoked by uid 500); 7 Nov 2013 18:43: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 47065 invoked by uid 500); 7 Nov 2013 18:43:17 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 47062 invoked by uid 99); 7 Nov 2013 18:43: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 18:43:17 +0000 Date: Thu, 7 Nov 2013 18:43:17 +0000 (UTC) From: "Vikram Dixit K (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5685) partition column type validation doesn't work in some cases 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-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13816225#comment-13816225 ] Vikram Dixit K commented on HIVE-5685: -------------------------------------- I am able to successfully build hive with this patch. I am not sure if something is amiss in the HiveQA build environment. [~brocknoland] any input would be appreciated. Thanks Vikram. > partition column type validation doesn't work in some cases > ----------------------------------------------------------- > > Key: HIVE-5685 > URL: https://issues.apache.org/jira/browse/HIVE-5685 > Project: Hive > Issue Type: Bug > Reporter: Sergey Shelukhin > Assignee: Vikram Dixit K > Attachments: HIVE-5685.1.patch, HIVE-5685.2.patch > > > It seems like it works if there's more than one partition column, and doesn't work if there's just one. At least that's the case that I found. The situation for different types is the same. > {noformat} > hive> create table zzz(c string) partitioned by (i int); > OK > Time taken: 0.41 seconds > hive> alter table zzz add partition (i='foo'); > OK > Time taken: 0.185 seconds > hive> create table zzzz(c string) partitioned by (i int,j int); > OK > Time taken: 0.085 seconds > hive> alter table zzzz add partition (i='foo',j=5); > FAILED: SemanticException [Error 10248]: Cannot add partition column i of type string as it cannot be converted to type int > hive> alter table zzzz add partition (i=5,j='foo'); > FAILED: SemanticException [Error 10248]: Cannot add partition column j of type string as it cannot be converted to type int > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)