Re: Field mapping with the Avro SerDe

2012-10-31 Thread Pedro Figueiredo
On 31 Oct 2012, at 15:19, Dean Wampler 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 ind

Re: Field mapping with the Avro SerDe

2012-10-31 Thread Dean Wampler
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); It works!! dean On Wed, Oct 31, 2012 at 9:59 AM, Pedro Figueiredo wrot

Field mapping with the Avro SerDe

2012-10-31 Thread Pedro Figueiredo
Hi, 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[0] does? Or is there a workaround for this (o