标签:Hive
浏览:72
内容:

str_to_map(concat_ws(',', collect_set(concat_ws(':', a.key_str, a.value_str))))  as keyvalue_map


regexp_replace(concat('{"',cast( concat_ws(',',collect_list(concat_ws(':', key_str, value_str))) as string),'"}'),',','","')  as keyvalue_map


参考网址:
https://blog.csdn.net/huobumingbai1234/article/details/80559944