'How to store result of hive query in a variable?
I'm new to hive. trying to create a hive script. i used below command in a hive script but result of query is not getting stored in variable.
set hivevar:var1=(show create table table7);
echo var1;
is this correct way of doing it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|