Data Transmission Service (DTS) adds additional columns to the tables that are synchronized to DataHub and MaxCompute. These additional columns are used to manage metadata, sort data, and remove duplicates. If the names of additional columns are the same as the names of existing columns in the destination table, data synchronization fails. To avoid this issue, we recommend that you modify the naming rules for additional columns.
Background information
Before you modify the naming rules for additional columns, check whether the names of the additional columns are the same as those of existing columns in the destination table. The following table lists the previous and new naming rules for additional columns.
dts_
prefix to the original columns that are synchronized from the source database in the destination database. If you use the new naming rules for additional columns, DTS does not add prefixes to the original columns that are synchronized from the source database in the destination database. Destination instance | Previous additional column name | New additional column name | Reference |
---|---|---|---|
DataHub |
|
| Schema of a DataHub topic |
MaxCompute |
|
| Schema of an incremental data table |
Procedure
- Create and configure a data synchronization task. For more information, see Steps 1 to 7 in Configure a data synchronization task.
- In the Select Object to Be Synchronized step, specify Whether to enable new additional column rules.
Section Description Yes If you select Yes, the new naming rules for additional columns are used. Note If the previous names of additional columns are the same as the names of existing columns in the destination table, select Yes.DTS adds the
new_dts_sync_
prefix to the previous names of additional columns.For example, if the previous name of an additional column is
record_id
, the new name of the additional column isnew_dts_sync_record_id
.No If you select No, the previous naming rules for additional columns are used. Note For more information about the naming rules for additional columns, see Naming rules for additional columns. - Configure other parameters that are required for the data synchronization task.