hive query with field is json

Posted lavin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hive query with field is json相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章