hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramki Gmail <ramki.pa...@gmail.com>
Subject Re: Trying to write a custom HiveOutputFormat
Date Mon, 13 May 2013 13:43:59 GMT
You may need to implement a custom SerDe.

Regards,
Ramki


On May 13, 2013, at 5:14 AM, Rui Martins <ruibmartins@gmail.com> wrote:

> Hi guys,
> 
> I'm currently writing my on HiveOutputFormat as I would like to write the output of hive
queries into a specific protobuf format my team is using. 
> I have managed to do this however, the Writable object I get from Hive as a result of
a SELECT query is of type Text. This means that I have to split the string to find my fields
but that's very error prone, specially if some fields are strings that may contain spaces.
> 
> My question is:
> 1) How do I get a Hive Writable that gives me each field of each result row?
> 
> Thank you,
> rui

Mime
View raw message