hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chewie (JIRA)" <>
Subject [jira] [Commented] (HIVE-2390) Expand support for union types
Date Thu, 23 Jan 2014 16:50:39 GMT


chewie commented on HIVE-2390:

I wanted to see about the current status, and if there are any ETAs for resolution?  I can
assure there are quite a few efforts needing to qualify on data within uniontypes in Hive
(Impala, etc), as soon as possible.  I've been informed my effort will not accept uniontype
usage (with more than one non-null type) unless there is built-in Hive support (which is very
unfortunate, but not without point)... meaning the types have to be split into separate fields,
which obviously is less semantically correct, more clunky (in the Avro model and Java), and
provides no benefit other than a workaround for clean query ability.

Something else that needs addressed is how to reference nested fields / structs / etc in the
query.  Currently '.' (period) is used, can this be kept for union?  Ambiguity can arise if
more than one type has the same field, in all other cases it can be implicitly unambiguous.
 This could actually be validated before query execution.  When more than one type could have
the same field, what would the syntax be? Possibly:
In the above example, any ambiguous object types being reference can be qualified by the int
value of the type in square brackets [].

> Expand support for union types
> ------------------------------
>                 Key: HIVE-2390
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Jakob Homan
>            Assignee: Mohammad Kamrul Islam
>              Labels: uniontype
> When the union type was introduced, full support for it wasn't provided.  For instance,
when working with a union that gets passed to LazyBinarySerde: 
> {noformat}Caused by: java.lang.RuntimeException: Unrecognized type: UNION
> 	at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serialize(
> 	at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serializeStruct(
> 	at org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe.serialize(
> {noformat}

This message was sent by Atlassian JIRA

View raw message