[
https://issues.apache.org/jira/browse/SQOOP-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111916#comment-14111916
]
Jarek Jarcec Cecho commented on SQOOP-1403:
-------------------------------------------
We have a hook in the {{ClassWriter}} class that enables the connector to set
any arbitrary order/repetition of the columns when writing back to a database
(e.g. for the {{write}} method). This is what Oracle connector is using without
a need to change the {{ClassWriter}} class. You should be able to use the same
facility in the SQL Server connector.
Check out the [generic hook
implementation|https://github.com/apache/sqoop/blob/trunk/src/java/org/apache/sqoop/manager/ConnManager.java#L646]
or the way [Oracle Connector uses
it|https://github.com/apache/sqoop/blob/trunk/src/java/org/apache/sqoop/manager/OracleManager.java#L474]
to support the {{MERGE}} statement.
> Upsert export for SQL Server
> ----------------------------
>
> Key: SQOOP-1403
> URL: https://issues.apache.org/jira/browse/SQOOP-1403
> Project: Sqoop
> Issue Type: New Feature
> Components: connectors/sqlserver
> Reporter: Keegan Witt
> Assignee: Keegan Witt
> Attachments: SQOOP-1403_non_func.patch
>
>
> Same as has been done in SQOOP-327 and SQOOP-621 (and requested in
> SQOOP-1270), but for SQL Server.
--
This message was sent by Atlassian JIRA
(v6.2#6252)