venkatsambath / hive-json-serde

Automatically exported from code.google.com/p/hive-json-serde
0 stars 0 forks source link

Allow JSON 'null' value in input. Convert to Hive NULL. #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Put a null value in JSON input data 

What is the expected output? What do you see instead?

Expect to see Hive NULL in output.
Instead you get:
Failed with exception java.io.IOException:java.lang.ClassCastException: 
org.json.JSONObject$Null cannot be cast to java.lang.String

Please provide any additional information below.

Patch attached.

Original issue reported on code.google.com by nick.mar...@gmail.com on 14 Jan 2011 at 11:16

Attachments:

GoogleCodeExporter commented 8 years ago
Applied patch as commit r23. Thank you.

Original comment by pas...@gmail.com on 31 Jul 2011 at 5:44

GoogleCodeExporter commented 8 years ago
I am currently using the 0.2 jar file and running into this exception. 

So ho do I apply this patch to the existing jar file.

thanks.

Original comment by anarc....@gmail.com on 16 May 2013 at 10:47