UDTF续-hive&sqoop;的ppt

时间:2021-04-26 10:20:43
【文件属性】:
文件名称:UDTF续-hive&sqoop;的ppt
文件大小:471KB
文件格式:PPT
更新时间:2021-04-26 10:20:43
hive sqoop UDTF(续1) UDTF有两种使用方法,一种直接放到select后面,一种和lateral view一起使用。 直接select中使用: select explode_map(properties) as (col1,col2) from src; 不可以添加其他字段使用: select a, explode_map(properties) as (col1,col2) from src 不可以嵌套调用: select explode_map(explode_map(properties)) from src 不可以和group by/cluster by/distribute by/sort by一起使用: select explode_map(properties) as (col1,col2) from src group by col1, col2

网友评论