Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-936

Classwriter should check if columnNames generated are null before accessing them

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.2, 1.4.3
    • Fix Version/s: 1.4.4
    • Component/s: None
    • Labels:
    • Environment:

      Netezza database tests

      Description

      If a table does not at the time of DROP, Netezza throws an exception but also sets the transaction as ignored (all changes through the connection will be ignored until the txn is either rollback or committed. While adding more tests, I missed the rollback and the create table was ignored, and subsequently ClassWriter.cleanColNames() threw NPE. I am fixing Netezza tests also, but we should check for this and throw a IOException instead of failing with NPE

        Attachments

        1. SQOOP-936.patch
          1.0 kB
          Venkat Ranganathan

          Activity

            People

            • Assignee:
              venkatnrangan Venkat Ranganathan
              Reporter:
              venkatnrangan Venkat Ranganathan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: