Tag Archives: g++

Hive的SELECT时,打印列名,以及key value显示

在MySQL中,支持\G,按照key = value的方式显示。

Hive也是支持的,只不过通过参数配置产生。

1、打印列名:
set hive.cli.print.header=true;
2、每行显示一个key、value,即\G类似的方式
set hive.cli.print.header=true;
set hive.cli.print.row.to.vertical=true;
set hive.cli.print.row.to.vertical.num=1;[......]

继续阅读