Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 48064 invoked from network); 18 Oct 2010 03:19:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 03:19:45 -0000 Received: (qmail 49666 invoked by uid 500); 18 Oct 2010 03:19:44 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 49607 invoked by uid 500); 18 Oct 2010 03:19:44 -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 49599 invoked by uid 500); 18 Oct 2010 03:19:44 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 49596 invoked by uid 99); 18 Oct 2010 03:19:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 03:19:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 03:19:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9I3JNKa026167 for ; Mon, 18 Oct 2010 03:19:23 GMT Message-ID: <23179678.14611287371963187.JavaMail.jira@thor> Date: Sun, 17 Oct 2010 23:19:23 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Reopened: (HIVE-814) exception alter a int typed column to date/datetime/timestamp In-Reply-To: <1265782046.1252029897466.JavaMail.jira@brutus> 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-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach reopened HIVE-814: --------------------------------- > exception alter a int typed column to date/datetime/timestamp > ------------------------------------------------------------- > > Key: HIVE-814 > URL: https://issues.apache.org/jira/browse/HIVE-814 > Project: Hadoop Hive > Issue Type: Bug > Reporter: Min Zhou > > As fas as i know, time types can only be used in partitions, normal columns is not allowed to be set as those types . But it's found can alter a no time types column to date/datetime/timestamp,but exceptions will be throwed when describing. > hive> create table pokes(foo int, bar string); > OK > Time taken: 0.894 seconds > hive> alter table pokes replace columns(foo date, bar string); > OK > Time taken: 0.266 seconds > hive> describe pokes; > FAILED: Error in metadata: MetaException(message:java.lang.IllegalArgumentException Error: type expected at the position 0 of 'date:string' but 'date' is found.) > FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.