0

I am trying to capture all column names of table in Variable

set col_names=show columns in Table_X;
select '${hiveconf:col_names}'

It doesn't work. It results literal value. I also tried .

set col_names=$(hive -e "show columns in Table_X;") ;
select '${hiveconf:col_names}'

It doesn't work. It brings back no values.

I am sure Its syntax issue and not limitation of Hive .

Raul Saucedo
  • 1,614
  • 1
  • 4
  • 13
Tinu
  • 1

0 Answers0