【hive-SQL】string 转成 map<>
发布时间
阅读量:
阅读量
select
cast(str_to_map(string_column, ',' , ':') as map<string,long>) as map_column
from
the_table
sql
例如,对于string_column这一字段,其对应的数据形式可以表示为:A:1,B:2,C:3,D:4,E:5
全部评论 (0)
还没有任何评论哟~
