hive 读取 map的value

table1中的c1字段是map类型,内容如下:

{
	"id1": "11111",
	"id2": "22222",
	"id3": "33333",
	"id4": "44444",
} 

select c1['id1'],c1['id2'],c1['id3'],c1['id4'] from table1? limit 1;

结果会把11111,22222,33333,44444作为4列在一行输出。

hive 读取 map的value_第1张图片

你可能感兴趣的:(java,java,后端)