[ 
https://issues.apache.org/jira/browse/HIVE-3264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426909#comment-13426909
 ] 

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: https://issues.apache.org/jira/browse/HIVE-3264
>             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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to