HIVE 查询结果中显示库名、列名(不带表名)

本文介绍了Hive的三个配置属性:hive.cli.print.header用于控制是否打印查询输出的列名,hive.cli.print.current.db决定是否显示当前数据库在Hive提示符中,而hive.resultset.use.unique.column.names则关乎是否在结果集中使用唯一的列名。这些设置对于优化Hive CLI的交互体验和理解查询结果有着重要作用。
摘要由CSDN通过智能技术生成
<property>
        <name>hive.cli.print.header</name>
        <value>true</value>
        <description>Whether to print the names of the columns in query output.</description>
    </property>
<property>
        <name>hive.cli.print.current.db</name>
        <value>true</value>
        <description>Whether to include the current database in the Hive prompt.</description>
</property>
 <!--  只显示列名,不是表名.列名   -->
<property>
	<name>hive.resultset.use.unique.column.names</name>
	<value>false</value>
</property>

显示效果如下:
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值