Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # user - Avro Aliases in Hive?


Copy link to this message
-
Re: Avro Aliases in Hive?
Jakob Homan 2013-11-08, 21:08
No, that's not supported.  The AvroSerde creates columns for each name,
but ignores aliases.

On 11/07/2013 11:51 PM, Matthew Langton wrote:
> Hello,
>
> Quick question about Hive and Avro.
>
> Can I create an Avro scheme that uses aliases? I have tried a couple
> different ways, but so far I have not been able to get a hive query to
> return data for the aliased fields.
>
> for instance, I have tried the following but both return default values.
>
> { "name": "eventtime", "type": "long", "default": 0, "aliases":
> ["EventTime"] },
> or
> { "name": "aeventtime", "type": "long", "default": 0, "aliases":
> ["EventTime"] },
>
> where my records were written with "EventTime" as the field name.
>
> Thanks!