0

I would like to use something like:

set hivevar:average = select avg(nvl(val,0)) as average from table;

and Then use on another table like:

select * from table2 where value>=${average}

Is this possible in hive? if not how is the correct way on doing

Alvaro Silvino
  • 9,441
  • 12
  • 52
  • 80

0 Answers0