incubator-hcatalog-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Capwell <dcapw...@gmail.com>
Subject Re: Writing data with different types
Date Tue, 27 Mar 2012 20:51:54 GMT
Talked about this in person so putting the notes here:

1) Currently the user must use ByteArrayRef.  Ill file a enhancement jira
to make this not depend on hive code in HcatRecord
2) struct should be a List<Object>

On Tue, Mar 27, 2012 at 10:26 AM, David Capwell <dcapwell@gmail.com> wrote:

> I am testing MR with all the different data types that hcat supports and
> had a few questions:
>
> 1) If I put my schema as binary and try to write new byte[0] to the hcat
> record, I will get an exception saying "java.lang.ClassCastException: [B
> cannot be cast to org.apache.hadoop.hive.serde2.lazy.ByteArrayRef".  Should
> this be the class used for hcatrecord while writing binary?
> 2) If my schema has a struct in it, what should I write to the hcat
> record?  What class should I use?
>
> Thanks for your time reading this email.
>

Mime
View raw message