如何将Hive查询的结果存储在变量中?
我是蜂巢的新手。尝试创建一个蜂巢脚本。 我在Hive脚本中使用了下面的命令,但是查询结果并未存储在变量中。
set hivevar:var1=(show create table table7);
echo var1;
这是正确的方法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论