首页 > Web开发 > 详细

hive query with field is json

时间:2017-09-26 17:13:48      阅读:239      评论:0      收藏:0      [点我收藏+]

if field is json,when query one key from json ,it will help you .

 select  idfa, appid ,appname , countrycode ,  get_json_object( field, $.carrier  )    from   impression_hour  where   yr = $yr and mt = $mt and  dt=$dt and  countrycode = SG";

 

refer :

https://docs.microsoft.com/zh-cn/azure/hdinsight/hdinsight-using-json-in-hive

hive query with field is json

原文:http://www.cnblogs.com/lavin/p/7597511.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!