hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kulkarni.swarnim@gmail.com" <kulkarni.swar...@gmail.com>
Subject Re: Composite blob key mapping in hive
Date Tue, 30 Jul 2013 04:57:03 GMT
Yes. It is possible to do that. The attached patch on the bug adds in a new
HBaseCompositeKey class that consumers can extend to provide their own
implementations. This will help hive understand their custom arrangement of
the composite keys.

If you can try the patch and let me know if it worked on you, that will be
awesome!


On Mon, Jul 29, 2013 at 11:47 PM, G.S.Vijay Raajaa
<gsvijayraajaa@gmail.com>wrote:

> Hi,
>
>     Thanks for the reply. The workaround can help me if it is a composite
> string literal with separators in the same. I would like to know if it
> works with the following constraints:
>
> 1) Is it possible to map a composite key based on the length instead of
> separators.
> *eg: *Map first 10 bytes , then last 4 bytes as a struct in Hive.
>
> 2) Is it possible to convert the composite key stored as serialized blob
> in the form of byte array and map the same to Hive??
>
> Thanks,
> Vijay Raajaa G S
>
>
> On Mon, Jul 29, 2013 at 6:10 PM, <kulkarni.swarnim@gmail.com> wrote:
>
>> Hi,
>>
>> Please refer to the workaround posted on HIVE-2599 and let me know if
>> that works for you.
>>
>> On Jul 29, 2013, at 6:22 AM, "G.S.Vijay Raajaa" <gsvijayraajaa@gmail.com>
>> wrote:
>>
>> > Hi,
>> >
>> >      I would like to know if it is possible to map a composite key
>> stored as blob in HBase to Hive??
>> >
>> > Regards,
>> > Vijay Raajaa G S
>>
>
>


-- 
Swarnim

Mime
View raw message