Is there any way to get the column name along with the output while execute any query in Hive?

前端 未结 7 1246
醉话见心
醉话见心 2020-12-23 02:17

In Hive, when we do a query (like: select * from employee), we do not get any column names in the output (like name, age, salary that we would get in R

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 02:48

    All above answers already answer the question. But in case if someone wants this property to be ON permanently, then there is this property: hive.cli.print.header in hive-default.xml or hive-site.xml.

    Its default value is false. Make its value as true and save. Done.

提交回复
热议问题