双列explode实现排列组合

select
userid,
author,
author1
from
(
select
123 as userid,
"1,2" as authorlist,
"1,2" as authorlist1
union all
select
234 as userid,
"3,4" as authorlist,
"3,4" as authorlist1
) details
lateral view explode(split(authorlist, ',')) t as author
lateral view explode(split(authorlist1, ',')) t1 as author1

image.png

你可能感兴趣的:(双列explode实现排列组合)