I had a deep look on the internet, but I'm not able to find any suitable answer.
In hive, is it possible to declare a variable, lets say:
test = 1
And change the value of this variable inside a query?
select
case
when field > 1 then test = test+1
else test = 1
end as test
from my table