explode
用法:展开字段,打成一列
对array操作
drop table if exists test
;
create temporary table test
(
id string
,
f1 array
<string
>
)
;
insert overwrite
table test
select 123, array
('1', '2', '3');
select id
, tag
from lateral
view explode
(f1
) r
as tag
;
对struct操作
import sklearn
def
转载请注明原文地址: https://mac.8miu.com/read-493552.html