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 2679510AF0 for ; Fri, 4 Apr 2014 23:43:30 +0000 (UTC) Received: (qmail 36176 invoked by uid 500); 4 Apr 2014 23:43:22 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 36102 invoked by uid 500); 4 Apr 2014 23:43: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 36080 invoked by uid 500); 4 Apr 2014 23:43:20 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 36029 invoked by uid 99); 4 Apr 2014 23:43:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2014 23:43:18 +0000 Date: Fri, 4 Apr 2014 23:43:18 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5376) Hive does not honor type for partition columns when altering column type 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-5376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960805#comment-13960805 ] Sergey Shelukhin commented on HIVE-5376: ---------------------------------------- Discussed w/Harish. It should be ok to do on client now. It's better to do close to data (metadata :)) but it will be difficult to achieve because metastore cannot depend on QL during compilation so some proxy class will need to be used, like for getPartitionsByExpr. Maybe another jira can be filed... > Hive does not honor type for partition columns when altering column type > ------------------------------------------------------------------------ > > Key: HIVE-5376 > URL: https://issues.apache.org/jira/browse/HIVE-5376 > Project: Hive > Issue Type: Bug > Components: CLI > Reporter: Sergey Shelukhin > Assignee: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5376.1.patch > > > Followup for HIVE-5297. If partition column of type string is changed to int, the data is not verified. The values for partition columns are all in metastore db, so it's easy to check and fail the type change. > alter_partition_coltype.q (or some other test?) checks this behavior right now. -- This message was sent by Atlassian JIRA (v6.2#6252)