Create an integration pipeline task SKILL

Updated at:

You can use natural language to instruct code agents like Qoder and CodeX to create a Dataphin integration pipeline task, which synchronizes and moves data between source and destination data sources. This document describes the SKILL's features, provides usage examples and execution results, and lists the required input information in the appendix.

Features

With this SKILL, you can create a data integration pipeline task by using natural language instructions to move data from sources like MySQL, Oracle, and Doris to destinations like MaxCompute, Hive, and PostgreSQL. Simply describe the source and destination, and the agent prepares the reader and writer configurations, field mapping, and scheduling settings before creating and submitting the task.

The code agent automatically identifies the appropriate data source or compute source for both the source and destination ends, as different components use different source types. It then filters and presents the available candidate sources based on the task's project environment. You only need to select the source name; the agent automatically resolves and validates the source identifier, eliminating the need for manual verification.

Before creating the task, the agent typically performs a pre-check. It lists the confirmed settings, missing information, and potential risks that require your confirmation, letting you review everything before submission.

Use cases:

  • Periodically synchronize data from a business database to a data warehouse for processing and analysis.

  • Perform one-to-one data transfers between different data sources.

  • Create offline integration, real-time, or workflow pipeline tasks.

Note

Limitations: This SKILL does not create tables automatically, so you must create the destination table in the destination data source in advance. The source and destination fields must have a one-to-one correspondence and be in the same order to prevent data misalignment. If the types or lengths of the source and destination fields are incompatible, the agent typically warns you of the risk and waits for your confirmation instead of automatically adding a conversion component. If a task has no upstream dependency, it must be attached to the tenant's virtual root node. If you want to place the task in a custom directory, you must create the directory and any parent directories in advance.

Usage examples

You can describe your requirements directly to the agent in natural language. The following are command examples that you can copy and use directly:

  • Create an offline integration pipeline task in the production environment to synchronize the 'orders' table from MySQL to the 'ods_orders' table in MaxCompute, and run it once every day at midnight.

  • Create a new pipeline task to move the 'user_info' table from Doris to PostgreSQL with one-to-one field mapping.

  • Create a data synchronization task. The source is the 'customer' table in Oracle and the destination is MaxCompute. Create a draft first for my review before submitting.

  • First, list the available data sources and compute sources for the MySQL to MaxCompute link in the current project's production environment. I will select them before you create the synchronization task.

Interaction steps:

  1. After you describe the source and destination data sources and synchronization requirements, the code agent typically confirms the target project, environment, and pipeline type.

  2. The code agent automatically lists the available data source and compute source candidates for both the source and destination based on the current project environment. It also determines whether to use a data source or a compute source for each end. You only need to select the source by name, as the code agent automatically resolves and validates the identifier.

  3. The code agent usually prompts you to create the destination table in the destination data source before it prepares the field mapping. If the source and destination fields have the same names and match perfectly, the code agent typically completes the mapping automatically. If there are unmatched or renamed fields, it provides a list for you to confirm.

  4. The code agent generates the reader, writer, and scheduling settings for the pipeline task. Before creation, it outputs a read-only configuration plan that lists the task name and directory, source and destination components, databases and tables, field counts, mapping relationships, same-name match results, and risk warnings. It also highlights any missing information or items that require your confirmation.

  5. After you confirm that all settings are correct, the code agent creates and submits the integration pipeline task.

Execution results

When the operation is complete, you will receive the following results:

  • Returned content: The task creation result, which usually includes identifiers for the new task.

  • Completion status: After the task is successfully created and submitted, it enters the appropriate scheduling or running state.

  • Verification: You can view the new task and its scheduling configuration in the Dataphin Integration Pipeline Task List.

Note

A success message from the command line indicates only that the request was accepted. For the final status, check the Dataphin UI.

Appendix: Parameters

The following table lists the information that may be required when creating a new integration pipeline task. This list is for reference. In practice, the code agent automatically identifies the necessary information from your commands and lists any missing or unconfirmed items in a pre-check before creation. Items marked as not required are automatically identified or generated by the system, so you do not need to provide them.

Item

Required

Description

Example

Tenant ID

Conditionally Required

If multiple tenants share the same service endpoint, you must explicitly specify the tenant to which the project belongs.

1234567890123456789

Project ID

Yes

The Dataphin project to which the integration pipeline task belongs.

—

Environment

No

The environment where the task runs. The default is Production. Available data source and compute source candidates for both ends are automatically filtered based on this environment.

Production

Pipeline task name

Yes

The name of the new integration pipeline task.

—

Pipeline type

No

Offline integration, Real-time, or workflow. The default is offline integration.

Offline integration

Source data source and table

Yes

The source data source or compute source and table for the data. The code agent automatically lists candidate sources based on the current project environment.

—

Partition or filter condition

Conditionally Required

If the source is a partitioned table, you must specify the partition to read. You can also use a filter condition to limit the scope of the data to be read.

Read the partition for the current day based on the business date

Destination data source and table

Yes

The destination data source or compute source and table where the data will be written. The destination table must be created in advance.

—

Data source and compute source identifier

No

Not required. The identifiers for the source and destination data sources or compute sources are automatically resolved and validated by the code agent based on the project environment.

—

Field mapping

Conditionally Required

The mapping between source and destination fields. The fields must have a one-to-one mapping and be in the same order. If source and destination fields have the same names and match perfectly, the code agent typically completes the mapping automatically. You must confirm the mapping if there are unmatched or renamed fields.

—

Load policy

Yes

The method for writing data to the destination table, such as append write or overwrite write. The available options vary depending on the type of destination data source.

Append write

Scheduling configuration

No

The scheduling cycle or cron expression for the task.

Run once daily at midnight

Resource and Concurrency Configuration

No

Channel settings such as concurrency, dirty data limit, and timeout.

—

Target directory

No

The directory where the task is stored. The default is the root directory. Custom directories and any parent directories must be created in advance.

—