Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 96148 invoked from network); 21 Jan 2009 22:37:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jan 2009 22:37:43 -0000 Received: (qmail 94707 invoked by uid 500); 21 Jan 2009 22:37:43 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 94686 invoked by uid 500); 21 Jan 2009 22:37:43 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 94677 invoked by uid 99); 21 Jan 2009 22:37:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2009 14:37:43 -0800 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.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2009 22:37:42 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 52D08118DD for ; Wed, 21 Jan 2009 22:37:22 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: core-commits@hadoop.apache.org Date: Wed, 21 Jan 2009 22:37:22 -0000 Message-ID: <20090121223722.23382.96105@eos.apache.org> Subject: [Hadoop Wiki] Update of "Hive/HiveQL/Types" by ZhengShao X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification. The following page has been changed by ZhengShao: http://wiki.apache.org/hadoop/Hive/HiveQL/Types ------------------------------------------------------------------------------ - == Types supported By Hive == The following types are supported by Hive: * !TinyInt @@ -8, +7 @@ * Int * !BigInt * Double + * Boolean + * String - The reason that we don't support !Float is that it's not supported by Thrift, and we use Thrift a lot inside Hive. + Float is not supported because it's not supported by Thrift, and Hive uses Thrift a lot for internal data serialization/deserialization. + Examples of creating a table with columns of various types: + + ((( + + CREATE TABLE test_table ( + a TINYINT, + b SMALLINT, + c INT, + d BIGINT, + e DOUBLE, + f BOOLEAN, + g STRING, + ); + + ))) == Implicit and Explicit Type Conversions == + In most cases, users don't need to care about the types,