Hi Vijay, What is the use case for UPSERT in Hive. The functionality does not exist but there are other solutions.
Are we talking about a set of dimension tables with primary keys hat need to be updated (existing rows) or inserted (new rows)? HTH Dr Mich Talebzadeh LinkedIn * https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw <https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>* http://talebzadehmich.wordpress.com *Disclaimer:* Use it at your own risk. Any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on this email's technical content is explicitly disclaimed. The author will in no case be liable for any monetary damages arising from such loss, damage or destruction. On 23 September 2016 at 09:46, Vijay Ramachandran <vi...@linkedin.com> wrote: > Hello. > > Is there a way to write a query with a behaviour equivalent to mysql's "on > duplicate update"? i.e., try to insert, and if key exists, update the row > instead? > > thanks, > >