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

前端 未结 7 1196
醉话见心
醉话见心 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 03:03

    Set this property before executing your query :

    hive> set hive.cli.print.header=true;
    
    0 讨论(0)
提交回复
热议问题