hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elango vaidyanathan <elango...@gmail.com>
Subject Cursor implementation in hive
Date Tue, 01 Aug 2017 05:54:39 GMT
Hi all,



I need to convert a SQL functionality that is in oracle now to hive



Existing pl/sql sudo code:



/* using cursor, column1 value is updated based on various if condition
checks */

Open cursor<>

If (<condition>)

Update table column1 with value 1

Else if (<conditon>)

Update table column1 with value 2

Some value= somefunction()

If(somevalue)

Update table column1 with value 3

Close cursor<>



How do I implement this in hive? Can anyone help me with this?



Thanks,

Elango



Thanks,
Elango

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message