Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2243 Sqoop2: Improve GenericJDBC Connector
  3. SQOOP-2443

Sqoop2: Generic JDBC: Properly detect compound primary keys in GenericJdbcExecutor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.7
    • None
    • None

    Description

      GenericJdbcExecutor.getPrimaryKey currently returns the first column of the primary key. This works well if the table have one single column as PK, but won't work correctly when the table have compound key. I would like to return entire PK here and let the user of this method decides what to do (report error or use one of the columns of the key).

      Attachments

        1. SQOOP-2443.patch
          9 kB
          Jarek Jarcec Cecho
        2. SQOOP-2443.patch
          11 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: