0

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?

Rishu Shrivastava
  • 3,745
  • 1
  • 20
  • 41

1 Answers1

0

Try the below in hive

show columns in <table name>

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

Rishu Shrivastava
  • 3,745
  • 1
  • 20
  • 41