【发布时间】:2019-08-23 20:44:02
【问题描述】:
$ 用作get_json_object 的根对象。我的 json 字符串在 json 键的名称中已经有 $,我怎样才能提取它的值?我不想使用 json_tuple。
create external table testing_hive (records string);
insert into testing_hive values("{\"$num\":\"hey\"}");
select get_json_object(testing_hive.records, '$.$num') from testing_hive;
【问题讨论】:
-
请问不使用json_tuple是什么原因?
-
基本上json太嵌套,要避免每次都使用横向视图。但是,最终使用了 json_tuple