Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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?
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!
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB