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

LEFT OUTER JOIN with 'field IS NULL' in WHERE 用作 INNER JOIN

mysql table is full error running query with pymysql

Spark-SQL 是不是支持使用 regex 规范的 Hive Select All Query with except Columns

laravel5.1 eloquent with 通过闭包筛选特定 field 得不到结果的问题

Spark with Hive 是不是可以将项目阶段推送到 HiveTableScan?

Flink SQL xxx is not serializable. The object probably contains or references non serializable field