hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pedro Figueiredo <p...@89clouds.com>
Subject Re: Field mapping with the Avro SerDe
Date Wed, 31 Oct 2012 15:27:52 GMT

On 31 Oct 2012, at 15:19, Dean Wampler <dean.wampler@thinkbiganalytics.com> wrote:

> I had no idea if the following hack would work or not, but it's used in the Scala language
for similar purposes:
> 
> Put the word data in left-hand ("back") quotes, e.g.,  `data`. For example
> 
> create table toss (`data` string);
> 

And indeed like in SQL. So SELECT mystruct.`data` works perfectly. And even mystruct.`data`["foo"].

Thank you so much!
Mime
View raw message