You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2012/07/09 23:34:35 UTC
[jira] [Commented] (HIVE-3246) java primitive type for binary
datatype should be byte[]
[ https://issues.apache.org/jira/browse/HIVE-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409874#comment-13409874 ]
Thejas M Nair commented on HIVE-3246:
-------------------------------------
The fix to use byte[] will not be backward compatible, but for the long term I think it is important to fix this. Hopefully, this won't affect too many people as binary datatype is relatively new.
> java primitive type for binary datatype should be byte[]
> --------------------------------------------------------
>
> Key: HIVE-3246
> URL: https://issues.apache.org/jira/browse/HIVE-3246
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.9.0
> Reporter: Thejas M Nair
> Assignee: Thejas M Nair
>
> PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[].
--
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