hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satish Mittal <>
Subject Support for Thrift Set type in Hive
Date Wed, 27 Aug 2014 10:11:03 GMT

I am wondering if anyone has been able to get Thrift Set type working in

Thrift supports List, Map and Struct complex types, which get mapped to
Array, Map and Struct complex types in Hive respectively. (Though there is
a difference in the support for Map: Thrift map allows a key of complex
type whereas Hive map doesn't.)

However thrift Set type doesn't seem to be working. Here is an example
thrift struct:

struct setrow {
    1: required set<i32> ids,
    2: required string name,

I created a Hive table using ThriftDeserializer as the serde class and
serialization.class is set to above thrift java class. However a describe
on this table shows type of column 'ids' as struct<>. Also issuing a select
query on set column throws SemanticException:
FAILED: SemanticException java.lang.IllegalArgumentException: Error: name
expected at the position 7 of 'struct<>' but '>' is found.

Any pointers/thoughts?


The information contained in this communication is intended solely for the 
use of the individual or entity to whom it is addressed and others 
authorized to receive it. It may contain confidential or legally privileged 
information. If you are not the intended recipient you are hereby notified 
that any disclosure, copying, distribution or taking any action in reliance 
on the contents of this information is strictly prohibited and may be 
unlawful. If you have received this communication in error, please notify 
us immediately by responding to this email and then delete it from your 
system. The firm is neither liable for the proper and complete transmission 
of the information contained in this communication nor for any delay in its 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message