hive中get_json_object()和json_tuple()
程序员文章站
2022-07-13 12:31:08
...
将每一行数据存储为string,属性名line
get_json_object()
select get_json_object(line,'$.movie') as movie,
get_json_object(line,'$.rate') as rate,
get_json_object(line,'$.timeStamp') as time,
get_json_object(line,'$.uid') as uid
from rate_json;
json_tuple()
select b.movie,b.rate,b.time,b.uid
from rate_json
lateral view json_tuple(line,'movie','rate','timeStamp','uid') b
as movie,rate,time,uid;
上一篇: layui点击按钮给table添加一行
下一篇: layui table 添加一行
推荐阅读
-
hive中get_json_object()和json_tuple()
-
HIVE中get_json_object与json_tuple使用
-
hive 中 json 字符串解析之 get_json_object 与 json_tuple
-
hive解析json的两种方法:get_json_object()和json_tuple()
-
json_tuple,get_json_object 实现hive的json字符串解析
-
hive get_json_object json_tuple json解析详解
-
hive中json字符串(get_json_object与json_tuple)及url解析(parse_url)
-
HIVE中get_json_object与json_tuple使用处理json格式数据
-
HIVE中get_json_object与json_tuple使用及区别
-
dual表在oracle,mysql和hive中的使用实例