How to view the calculated value of a hive variable How to view the calculated value of a hive variable hadoop hadoop

How to view the calculated value of a hive variable


Hive "variables" are actually nothing more than a text replacement mechanism.
The replacement is done before parsing and execution.

hive> set hivevar:v1=se;hive> set hivevar:v2=l;hive> set hivevar:v3=ec;hive> set hivevar:v4=t 1+;hive> set hivevar:v5=2;hive> ${hivevar:v1}${hivevar:v2}${hivevar:v3}${hivevar:v4}${hivevar:v5};OK3