Updated on 2024-10-23 GMT+08:00

To DWS

Table 1 Parameter description

Type

Parameter

Description

Example Value

Basic parameters

Schema/Table Space

Name of the database to which data will be written. The schema can be automatically created.

Click the icon next to the text box to select a schema or tablespace.

This parameter is unavailable for entire DB migration.

schema

Table Name

Name of the table to which data will be written. Click the icon next to the text box. The dialog box for selecting the table is displayed.

This parameter is unavailable for entire DB migration.

This parameter can be configured as a macro variable of date and time and a path name can contain multiple macro variables. When the macro variable of date and time works with a scheduled job, the incremental data can be synchronized periodically. For details, see Incremental Synchronization Using the Macro Variables of Date and Time.

NOTE:

If you have configured a macro variable of date and time and schedule a CDM job through DataArts Studio DataArts Factory, the system replaces the macro variable of date and time with (Planned start time of the data development jobOffset) rather than (Actual start time of the CDM jobOffset).

table

Import Mode

Mode for importing data to GaussDB(DWS)

  • COPY: The source data is copied to the DataNode of DWS after passing through the management node.
  • UPSERT: If a primary key or unique constraint conflict occurs, other data columns, except the primary key and unique constraint column, are updated.
  • COPY_UPSERT: The high-performance batch import tool of GaussDB(DWS) is used.

COPY

Clear Data Before Import

Whether to clear the data in the destination table before data import. The options are as follows:
  • Do not clear: The data in the destination table is not cleared before data import. The imported data is just added to the table.
  • Clear all data: All data is cleared from the destination table before data import.
  • Clear part of data: Part of the data in the destination table is cleared before data import. If you select Clear part of data, you must configure WHERE Clause to specify which part will be deleted.

Clear part of data

Where Clause

If Clear Data Before Import is set to Clear part of data, data in the destination table will be deleted based on the WHERE clause after the configuration is complete and before the import starts.

age > 18 and age <= 60

Advanced attributes

This parameter is unavailable for entire DB migration.

Import Data to Phase Table

If you set this parameter to Yes, the transaction mode is enabled. CDM automatically creates a temporary table and imports data to the temporary table. After the data is imported successfully, it is migrated to the destination table in transaction mode. If the import fails, the destination table is rolled back to the state before the job starts. .

The default value is No, indicating that CDM directly imports the data to the destination table. In this case, if the job fails to be executed, the data that has been imported to the destination table will not be rolled back automatically.

NOTE:

If you select Clear part of data or Clear all data for Clear Data Before Import, CDM does not roll back the deleted data in transaction mode.

No

Pre-import SQL Statement

The SQL statement that is first executed before a task is executed. Currently, only one SQL statement can be executed in wizard mode.

create temp table

Post-import SQL Statement

The SQL statement that is executed after a task is executed. Currently, only one SQL statement can be executed.

merge into

Loader Threads

Number of threads started in each loader. A larger number allows more concurrent write operations.

NOTE:

Conflict handling policies do not support "replace into" or "on duplicate key update".

1