hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mich Talebzadeh <mich.talebza...@gmail.com>
Subject Re: on duplicate update equivalent?
Date Fri, 23 Sep 2016 10:17:14 GMT
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 <vijay@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,
>
>

Mime
View raw message