Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Parsing flexing json in pig

Copy link to this message
Parsing flexing json in pig
  I have a semi-structured json:
For example:

And so on.
So, what I want to do is , read this file

and select "id" and count "address" for each id
If "address" field is not there, then count it as 0
So, the output of above is:
id, count_address

Also, I want to use python udf to parse this json?