Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-24782

Fix in HIVE-22889 introduced NPE when using non-WebHCat HCat components

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • HCatalog

    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

        1. HIVE-24782-002.patch
          1 kB
          Jason Phelps
        2. HIVE-24782-001.patch
          1.0 kB
          Jason Phelps

        Issue Links

          Activity

            People

              jphelps Jason Phelps
              jphelps Jason Phelps
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h