hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Reisman (JIRA)" <>
Subject [jira] [Commented] (HIVE-3264) Add support for binary dataype to AvroSerde
Date Wed, 01 Aug 2012 21:22:03 GMT


Eli Reisman commented on HIVE-3264:

Looking at the source, I'm seeing AvroSerDe code mapping BYTE to Constants.TINYINT_TYPE_NAME
in Hive, but binary type (array/blob) already maps to Constants.BINARY_TYPE_NAME -- and inside
the Hive constants, I see no "byte" type to replace TINYINT_TYPE_NAME, is there something
I'm missing? I could not tell from the description whether the binary type is what you were
discussing (looks like its already in place), or the single-byte type in specific. In that
case, there is no replacement I can find for  tiny int on the Hive side. I didn't see anything
on the binary array being implemented as tiny ints any more in the code. I am looking in the
org.apache.hive.serde2.* packages.

> Add support for binary dataype to AvroSerde
> -------------------------------------------
>                 Key: HIVE-3264
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Serializers/Deserializers
>            Reporter: Jakob Homan
> When the AvroSerde was written, Hive didn't have a binary type, so Avro's byte array
type is converted an array of small ints.  Now that HIVE-2380 is in, this step isn't necessary
and we can convert both Avro's bytes type and probably fixed type to Hive's binary type.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message