Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.99.4
-
None
-
None
Description
While investigating SQOOP-1784, I've noticed that JSONValue.parse() method that we're using everywhere in the code base is swallowing exceptions and returning null on all failure scenarios.
As this is causing a random NullPointerException being thrown elsewhere without proper information what went wrong, I would like to migrate to method JSONValue.parseWithException() instead. Given how much we're parsing JSONs inside Sqoop 2, I would also recommend to create a small Util class that will handle error cases and coverts the ParserException to SqoopException.