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);
On Wed, Oct 31, 2012 at 9:59 AM, Pedro Figueiredo <[EMAIL PROTECTED]> wrote:
> I'm working with some Avro data where a member of a struct has
> unfortunately been named 'data', which is a reserved keyword. It's
> therefore impossible, to my knowledge, to do a select on this.
> Is there a way to remap fields, like the JSON SerDe does? Or is there a
> workaround for this (other than changing the Avro schema upstream) ? I'm
> running Hive 0.8.1 in CDH3, with the haivvreo SerDe..
> : https://github.com/rathboma/Hive-JSON-Serde-1
> : https://github.com/jghoman/haivvreo
> Thank you in advance,
*Dean Wampler, Ph.D.*