In Hive, how to combine multiple tables to produce single row containing array of objects?
问题 I have two tables as follows: users table ========================== | user_id name age | |========================= | 1 pete 20 | | 2 sam 21 | | 3 nash 22 | ========================== hobbies table ====================================== | user_id hobby time_spent | |===================================== | 1 football 2 | | 1 running 1 | | 1 basketball 3 | ====================================== First question: I would like to make a single Hive query that can return rows in this format: {