The GBase 8a output component writes data to a GBase 8a data source. After you configure the source data source, configure the GBase 8a output component to specify the target data source for data synchronization.
Prerequisites
-
A GBase 8a data source is created. For more information, see Create a GBase 8a data source.
-
The account used to configure the GBase 8a output component properties has the write-through permission for the data source. If you do not have the permission, request it. For more information, see Request, renew, and return data source permissions.
Procedure
-
In the top navigation bar of the Dataphin homepage, choose Develop > Data Integration.
-
In the top navigation bar of the integration page, select Project (In Dev-Prod mode, you need to select Environment).
-
In the left navigation pane, click Batch Pipeline, and then click the offline pipeline that you want to develop in the Batch Pipeline list to open the configuration page of the offline pipeline.
-
Click Component Library in the upper-right corner of the page to open the Component Library panel.
-
In the left navigation pane of the Component Library panel, select Outputs, find the GBase 8a component in the output component list on the right, and drag the component to the canvas.
-
Click and drag the
icon of the target input, transform, or flow component to connect it to the current GBase 8a output component. -
On the GBase 8a output component, click the
icon to open the GBase 8a Output Configuration dialog box.
-
In the GBase 8a Output Configuration dialog box, configure the following parameters.
Parameter
Description
Basic Settings
Step Name
The name of the GBase 8a output component. Dataphin automatically generates a step name that you can modify. The name must meet the following requirements:
-
It can contain only Chinese characters, letters, underscores (_), and digits.
-
It cannot exceed 64 characters in length.
Datasource
The dropdown list displays all GBase 8a data sources, regardless of whether you have the write-through permission. Click the
icon to copy the data source name.-
For data sources without write-through permission, click Request next to the data source to request the permission. For more information, see Request data source permissions.
-
If no GBase 8a data source exists, click Create Data Source to create one. For more information, see Create a GBase 8a data source.
Table
Select the target table for output data. You can enter a keyword to search for a table or enter the exact table name and click Exact Match. After you select a table, the system automatically checks the table status. Click the
icon to copy the name of the selected table.Loading Policy
Select the policy for writing data to the target table. Only Append Data is supported. A dirty data error is reported when a primary key or constraint violation occurs.
Batch Write Data Volume (optional)
The amount of data written per batch. The system writes data when either this limit or Batch Write Records is reached. The default value is 32M.
Batch Write Records (optional)
The default value is 2048 records. Data is written in batches based on Batch Write Records and Batch Write Data Volume.
-
When the accumulated data reaches either limit (batch write data volume or batch write records), the system immediately writes the batch to the destination.
-
We recommend that you set the batch write data volume to 32 MB. Adjust the batch write records based on the actual record size, using a large value to maximize batch writing efficiency. For example, if a single record is about 1 KB, you can set the batch write data volume to 16 MB. In this case, set the batch write records to a value greater than 16 MB divided by 1 KB (that is, greater than 16,384 records), for example, 20,000 records. With this configuration, the system triggers a write operation when the accumulated data volume reaches 16 MB.
Preparation Statement (optional)
A SQL script executed on the database before data import.
For example, to ensure continuous service availability: before writing data, create target table Target_A and write to it. After writing completes, rename the active service table Service_B to Temp_C, rename Target_A to Service_B, and then delete Temp_C.
End Statement (optional)
A SQL script executed on the database after data import.
Field Mapping
Input Fields
Input fields are populated based on the output of the upstream component.
Output Fields
Output fields for the component. You can perform the following operations:
-
Field management: Click Field Management to select output fields.

-
Click the
icon to move Selected Input Fields to Unselected Input Fields. -
Click the
icon to move Unselected Input Fields to Selected Input Fields.
-
-
Batch add: Click Batch Add to configure in JSON, TEXT, or DDL format in batches.
-
Configure in JSON format in batches, for example:
// Example: [{ "name": "user_id", "type": "String" }, { "name": "user_name", "type": "String" }]Notename indicates the name of the imported field, and type indicates the type of the field after import. For example,
"name":"user_id","type":"String"indicates that the field named user_id is imported and the field type is set to String. -
Configure in TEXT format in batches, for example:
// Example: user_id,String user_name,String-
The row delimiter is used to separate the information of each field. The default value is the line feed (\n). The line feed (\n), semicolon (;), and period (.) are supported.
-
The column delimiter is used to separate the field name from the field type. The default value is the comma (,).
-
-
Configure in DDL format in batches, for example:
CREATE TABLE tablename ( id INT PRIMARY KEY, name VARCHAR(50), age INT );
-
-
Create an output field: Click +Create Output Field, fill in Column and select Type as prompted on the page. After you complete the configuration of the current row, click the
icon to save it.
Mapping
Map fields between the upstream input and the target table. Mapping includes Same Row Mapping and Same Name Mapping.
-
Same Name Mapping: Maps fields that share the same name.
-
Same Row Mapping: Maps fields by row position when field names differ between the source and target tables.
-
-
Click OK to complete the configuration of the GBase 8a Output Component.

icon to save it.