Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2303

EmptyTypeList when returned from DatabaseProvider class results in NPE in TestNG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.5
    • 1.99.7
    • sqoop2-test
    • None

    Description

      Right now by default DatabaseProvider class returns EmptyTypeList. But surprisingly, TestNG is unable to handle empty list and throws NPE in tests which run for DB providers which dont have their own TypesLists.

      We should add a DefaultTypesList which returns a minimal type (INT) and some tests on it and return it by default instead of EmptyTypeList.

      Attachments

        1. SQOOP-2303-1.patch
          3 kB
          Syed A. Hashmi
        2. SQOOP-2303-2.patch
          4 kB
          Syed A. Hashmi

        Activity

          People

            shashmi Syed A. Hashmi
            shashmi Syed A. Hashmi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: