Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In HIVE-22889, it introduced the following lines:
// remove the leading and trailing quotes. hcatalog can miss on some cases. if (execString.length() > 1 && execString.startsWith("\"") && execString.endsWith("\"")) { execString = execString.substring(1, execString.length() - 1); }
When calling Sqoop HCat jobs, or the HCat CLI, it will throw an NPE because execString is null but not wrapped in the handy Null check that is nearby
if (execString != null) {
Attachments
Attachments
Issue Links
- is caused by
-
HIVE-22889 Trim trailing and leading quotes for HCatCli query processing
- Closed
- is duplicated by
-
HIVE-23156 NPE if -f is used with HCatCLI
- Resolved
- links to