Search This Blog

May 26, 2016

Hive: How to display column headers when executed SELECT statement

How to display Column Names / Headers when executed SELECT statement?

Set the below Hive property before executing the SELECT statement at hive prompt.

        SET hive.cli.print.header=true;

After executing the above statement execute the SELECT statement

No comments: