avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron.Dossett <Aaron.Doss...@target.com>
Subject Re: Want to Add New Column in Avro Schema
Date Wed, 23 Mar 2016 13:06:29 GMT
If you create the external table by reference to the .avsc file (TBLPROPERTIES ( 'avro.schema.url'='hdfs://foo.avsc'))
the all you have to do is update that avsc file in a compatible way and Hive should reflect
the new schema.  I've implemented this pattern in my production system for several months
now.

-Aaron

From: "Lunagariya, Dhaval" <dhaval.lunagariya@citi.com<mailto:dhaval.lunagariya@citi.com>>
Reply-To: "user@avro.apache.org<mailto:user@avro.apache.org>" <user@avro.apache.org<mailto:user@avro.apache.org>>
Date: Wednesday, March 23, 2016 at 6:32 AM
To: "user@avro.apache.org<mailto:user@avro.apache.org>" <user@avro.apache.org<mailto:user@avro.apache.org>>
Cc: "'er.dcpatel@gmail.com<mailto:'er.dcpatel@gmail.com>'" <er.dcpatel@gmail.com<mailto:er.dcpatel@gmail.com>>
Subject: Want to Add New Column in Avro Schema

Hey folks,

I want to add new column in existing Hive Table. We created external hive table with the help
of .avsc. Now I want to add new column in that table.

How can I do that without disturbing any data present in table?

Please Help.

Regards,
Dhaval


Mime
View raw message