Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 48106 invoked from network); 18 Oct 2010 03:19:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 03:19:48 -0000 Received: (qmail 49911 invoked by uid 500); 18 Oct 2010 03:19:48 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 49888 invoked by uid 500); 18 Oct 2010 03:19:47 -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 49880 invoked by uid 500); 18 Oct 2010 03:19:47 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 49877 invoked by uid 99); 18 Oct 2010 03:19:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 03:19:47 +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:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9I3JO4h026177 for ; Mon, 18 Oct 2010 03:19:24 GMT Message-ID: <13387660.14641287371964105.JavaMail.jira@thor> Date: Sun, 17 Oct 2010 23:19:24 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Resolved: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach resolved HIVE-814. --------------------------------- Resolution: Won't Fix Fix Version/s: (was: 0.6.0) (was: 0.5.0) > 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.