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

To MongoDB

Table 1 Parameter description

Type

Parameter

Description

Example Value

Basic parameters

Database

Database name. Click the icon next to the text box. The dialog box for selecting the database is displayed.

default

Collection Name

Name of the collection to which data will be written. Click the icon next to the text box to enter the page for selecting a collection.

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

Advanced attributes

Behavior

Mode for writing data to the destination.

  • Insert: Insert file records into a specified set.
  • Upsert: Use a specified filter key as the query condition. If a record already exists in the set, the record is replaced. Otherwise, the new record will be added.
  • Replace: Use a specified filter key as the query condition. If a record already exists in the set, the record is replaced. Otherwise, the new record will not be added.

Insert

Pre-import SQL Statement

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

create table