sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-2443) Sqoop2: Generic JDBC: Properly detect compound primary keys in GenericJdbcExecutor
Date Wed, 12 Aug 2015 21:56:47 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694246#comment-14694246
] 

ASF subversion and git services commented on SQOOP-2443:
--------------------------------------------------------

Commit ec0544c6f5436abeb6880ec2929eb4190dd94069 in sqoop's branch refs/heads/sqoop2 from [~abec]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=ec0544c ]

SQOOP-2443: Sqoop2: Generic JDBC: Properly detect compound primary keys in GenericJdbcExecutor

(Jarek Jarcec Cecho via Abraham Elmahrek)


> Sqoop2: Generic JDBC: Properly detect compound primary keys in GenericJdbcExecutor
> ----------------------------------------------------------------------------------
>
>                 Key: SQOOP-2443
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2443
>             Project: Sqoop
>          Issue Type: Sub-task
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2443.patch, SQOOP-2443.patch
>
>
> [GenericJdbcExecutor.getPrimaryKey|https://github.com/apache/sqoop/blob/sqoop2/connector/connector-generic-jdbc/src/test/java/org/apache/sqoop/connector/jdbc/TestToInitializer.java#L195]
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).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message