rcongiu / Hive-JSON-Serde

Read - Write JSON SerDe for Apache Hive.
Other
733 stars 391 forks source link

array with elements and with out element #209

Open pandu39 opened 6 years ago

pandu39 commented 6 years ago

Hi, I am unable to achieve below functionality on my data, any have suggestions?

i/p: { "details": {"ROW":[ {"company":"xyz", "domain":"123", "items":{"ROW":[{"shoes":"Nike","shirt":""},{"shoes":"Fila","shirt":""}]} }, {"company":"x", "domain":"12", "items":{"ROW":[]} } ] }, "send":"me" }

expected output from hive- send|company|domain|shoes|shirt me |xyz |123 |Nike |null me |xyz |123 |Fila |null me |x |12 |null |null

Actually I am unable to get third row in this case, first two rows are good but third row is missing while exploding array with openX serde