Hive SELECT statement to create an ARRAY of STRUCTS
问题 I'm having trouble selecting into an ARRAY of STRUCTS in Hive. My source table looks like this: +-------------+--+ | field | +-------------+--+ | id | | fieldid | | fieldlabel | | fieldtype | | answer_id | | unitname | +-------------+--+ This is survey data, where the id is the survey id, the four fields in the middle are response data, and the unitname is the the business unit that the survey pertains to. I need to create an array of structs for all of the answers for each survey id. I