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!

Reply via email to