Fetch column name from hive via querygrid

86 Views Asked by At

My requirement is that I need to fetch only the list of columns of a hive table via querygrid.

For example, the "help foreign table" gives the col_name,data_type and comment as output.

Can someone please suggest how I can fetch only the col_name?

1

There are 1 best solutions below

3
Rishu S On

Try the below in hive

show columns in <table name>

this should return you a list of columns in a table.