cloudera / cdh-twitter-example

Example application for analyzing Twitter data using CDH - Flume, Oozie, Hive
288 stars 343 forks source link

handle elements that appear optionally in the JSON input #11

Closed kristofvb closed 10 years ago

kristofvb commented 10 years ago

If an element does not appear an NPE is thrown and handled by the catch in method deserialize. This causes a problem if the optional element appears in a nested element e.g. inside a struct. The whole nested element is replaced by NULL.