I\'m trying to find a way to split a row in Hive into multiple rows based on a delimited column. For instance taking a result set:
ID1 Subs 1 1, 2 2
Try this wording
SELECT ID1, Sub FROM tableName lateral view explode(split(Subs,',')) Subs AS Sub