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 463B8111FB for ; Thu, 11 Sep 2014 04:19:34 +0000 (UTC) Received: (qmail 19500 invoked by uid 500); 11 Sep 2014 04:19:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 19423 invoked by uid 500); 11 Sep 2014 04:19:33 -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 19412 invoked by uid 500); 11 Sep 2014 04:19:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 19409 invoked by uid 99); 11 Sep 2014 04:19:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2014 04:19:33 +0000 Date: Thu, 11 Sep 2014 04:19:33 +0000 (UTC) From: "Satish Mittal (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7892) Thrift Set type not working with Hive 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-7892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Satish Mittal updated HIVE-7892: -------------------------------- Status: In Progress (was: Patch Available) > Thrift Set type not working with Hive > ------------------------------------- > > Key: HIVE-7892 > URL: https://issues.apache.org/jira/browse/HIVE-7892 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Reporter: Satish Mittal > Assignee: Satish Mittal > Attachments: HIVE-7892.patch.1.txt, HIVE-7892.patch.txt > > > Thrift supports List, Map and Struct complex types, which get mapped to Array, Map and Struct complex types in Hive respectively. However thrift Set type doesn't seem to be working. > Here is an example thrift struct: > {noformat} > namespace java sample.thrift > struct setrow { > 1: required set ids, > 2: required string name, > } > {noformat} > A Hive table is created with ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.thrift.ThriftDeserializer' WITH SERDEPROPERTIES ('serialization.class'='sample.thrift.setrow', 'serialization.format'='org.apache.thrift.protocol.TBinaryProtocol'). > Describing the table shows: > {noformat} > hive> describe settable; > OK > ids struct<> from deserializer > name string from deserializer > {noformat} > Issuing a select query on set column throws SemanticException: > {noformat} > hive> select ids from settable; > FAILED: SemanticException java.lang.IllegalArgumentException: Error: name expected at the position 7 of 'struct<>' but '>' is found. > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)