I am trying to do a select for all attributes as columnname , i was wondering if this is possible in hive, I have found out that within sql , we are able to extract its attributes as select statement.
The query i have tried is as shown below : In my hive ,
DB im using is : gfr_staging
Table : spt_myr
SELECT COLUMN_NAME AS `Field`, COLUMN_TYPE AS `Type` FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'gfr_standard' AND TABLE_NAME = 'spt_myr';
But it returns me error. i was wondering if this is possible in hive