码迷,mamicode.com
首页 > Web开发 > 详细

hive query with field is json

时间:2017-09-26 17:55:49      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:rom   pre   ros   country   field   sig   select   json   https   

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

标签:rom   pre   ros   country   field   sig   select   json   https   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!