0
在实践中,我已经创建了tmp表,使用蜂巢提示中的以下查询。蜂巢临时表自动删除
$create temporary table tmp (id int);
现在表是越来越成功创建,如果我关闭蜂巢会话表将被蜂房根据文档这是真正的自动删除。
现在,还有其他方法可以通过使用以下命令来运行相同的查询。是越来越成功创建
$hive -e 'create temporary table tmp (id int);'
表,但我怀疑是这个时候,为什么TMP表不会得到自动删除这一次。执行下一个命令后,我仍然可以看到tmp表。
$hive -e 'show tables;'
OK
customers
order
product
tmp
Time taken: 0.856 seconds, Fetch: 4 row(s)