I have a requirement to select * from all columns from a hive struct.
Hive create table script is here below
Select * from the table displays each struct as a column select * from table
The requirement i have is to display all fields of a struct collection as a column in hive.
The users shouldnt have to write column names individually. Does anyone have a UDF to do this?
You may use view on top of table or dump the data in some other tables based on schema you want. Syntax for view :-