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 A804A17CE1 for ; Tue, 30 Sep 2014 22:53:34 +0000 (UTC) Received: (qmail 5723 invoked by uid 500); 30 Sep 2014 22:53:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 5650 invoked by uid 500); 30 Sep 2014 22:53:34 -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 5637 invoked by uid 500); 30 Sep 2014 22:53:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 5634 invoked by uid 99); 30 Sep 2014 22:53:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 22:53:34 +0000 Date: Tue, 30 Sep 2014 22:53:34 +0000 (UTC) From: "Lefty Leverenz (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-7971) Support alter table change/replace/add columns for existing partitions 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-7971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153943#comment-14153943 ] Lefty Leverenz commented on HIVE-7971: -------------------------------------- Doc note: This belongs in the wiki's DDL doc with version information and guidance (see previous comments). * [DDL -- Alter Column | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AlterColumn] * [Gunther's doc comment | https://issues.apache.org/jira/browse/HIVE-7971?focusedCommentId=14131948&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14131948] * [Jason's comment (multiple partitions) | https://issues.apache.org/jira/browse/HIVE-7971?focusedCommentId=14134238&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14134238] > Support alter table change/replace/add columns for existing partitions > ---------------------------------------------------------------------- > > Key: HIVE-7971 > URL: https://issues.apache.org/jira/browse/HIVE-7971 > Project: Hive > Issue Type: Bug > Reporter: Jason Dere > Assignee: Jason Dere > Labels: TODOC14 > Fix For: 0.14.0 > > Attachments: HIVE-7971.1.patch, HIVE-7971.2.patch, HIVE-7971.3.patch > > > ALTER TABLE CHANGE COLUMN is allowed for tables, but not for partitions. Same for add/replace columns. > Allowing this for partitions can be useful in some cases. For example, one user has tables with Hive 0.12 Decimal columns, which do not specify precision/scale. To be able to properly read the decimal values from the existing partitions, the column types in the partitions need to be changed to decimal types with precision/scale. -- This message was sent by Atlassian JIRA (v6.3.4#6332)