这个函数相当于拆开行变成列。 

可以理解为行转列。

 

               select
                    id,order_label
               from table_bx
               lateral view explode(split(work_order_label, ',')) order_label as order_label

 

源表:

Array<int> pageid_list Array<string> adid_list
[1, 2, 3] ["a", "b", "c"]
[3, 4] ["c", "d"]

 

 

结果为:

lateral view 使用方法

相关文章:

  • 2021-07-14
  • 2022-03-08
  • 2021-06-22
  • 2022-12-23
  • 2021-07-01
  • 2021-12-05
  • 2022-12-23
  • 2021-05-05
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-08-22
相关资源
相似解决方案