下面语句直接可以识别hive中的json array类型
get_json_object(orientation, "$.[0].wlRatio")
下面语句可以将jsonarray一行转换为多行,然后进行处理或者遍历
SELECT
id,
pc
FROM
app.table_name LATERAL VIEW explode(split(regexp_replace(regexp_replace(regexp_replace(orientation, '\\[', ''), '\\]', ''), '\\}\\,\\{', '\\}\\;\\{'), '\\;')) mytable as pc