hive explode

mac2024-06-04  48

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
最新回复(0)