Configure the Doris output component
The Doris output component writes data from external sources, such as databases and storage systems, to Doris for integration and processing. This topic describes how to configure it.
Prerequisites
-
A Doris data source is required. For more information, see Create a Doris data source.
-
The account used for configuration requires synchronous write permission on the data source. If you lack this permission, you must apply for it. For more information, see Apply for 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 a Project. If you are in Dev-Prod mode, you also need to select an environment.
-
In the left-side navigation pane, click Batch Integration. In the Batch Integration list, click the desired batch pipeline to open its configuration page.
-
In the upper-right corner of the page, click Component Library to open the Component Library panel.
-
In the left-side navigation pane of the Component Library panel, select Output. From the list of output components on the right, find the Doris component and drag it onto the canvas.
-
Drag the
icon from a source, transformation, or process component to the Doris output component to connect them. -
Click the
icon on the Doris output component card to open the Doris Output Configuration dialog box.
-
In the Doris Output Configuration dialog box, configure the parameters as described in the following table.
Parameter
Description
Basic settings
Step name
The name of the Doris output component. Dataphin automatically generates a name, which you can customize. The name must meet the following requirements:
-
Can contain only Chinese characters, letters, underscores (_), and digits.
-
Cannot exceed 64 characters in length.
Data source
The drop-down list displays all Doris-type data sources, regardless of whether you have synchronous write permission for them. Click the
icon to copy the current data source name.-
If you do not have synchronous write permission for a data source, click Apply next to it to request permission. For more information, see Apply for Data Source Permissions.
-
If you do not have a Doris-type data source, click Create Data Source to create one. For more information, see Create a Doris data source.
Table
Select the target table. You can search by keyword, or enter the exact table name and click Precise Search. After you select a table, the system automatically checks its status. Click the
icon to copy the name of the selected table.If the Doris data source does not have a destination table for data synchronization, you can use the one-click table creation feature to quickly and easily generate the destination table. The detailed steps are as follows:
-
Click One-click table creation. Dataphin automatically generates a DDL statement to create the target table. This statement includes the target table name (which defaults to the source table name) and field types, which are automatically mapped from Dataphin's types.
-
You can modify the SQL script as needed and then click Create. After the table is created, Dataphin automatically sets the new table as the output target.
Note-
If a table with the same name already exists in the development environment, Dataphin reports an error when you click Create.
-
If the table search yields no results, you can still proceed by manually entering a table name.
-
Policy for missing production table
Specifies how to handle a missing production table. You can select Do Not Process or Auto-create. The default is Auto-create. Do Not Process prevents table creation during task deployment. Auto-create creates the table in the target environment during task deployment.
-
Do Not Process: If the target table does not exist, the system displays a notification when you submit the task but still allows deployment. However, you must manually create the target table in the production environment for the task to run.
-
Auto-create: You must click Edit DDL Statement. By default, the DDL statement for the selected table is pre-populated, but you can modify it. The table name in the DDL statement must use the
${table_name}placeholder, and only this placeholder is supported. During execution, the system replaces the placeholder with the actual table name.If the target table does not exist, the system first attempts to create it by using the DDL statement. If the creation fails, the deployment check fails. You can then modify the DDL statement based on the error message and redeploy. If the target table already exists, the DDL statement is not executed.
NoteThis parameter is available only in projects that use the Dev-Prod mode.
Data format
Select CSV or JSON.
If you select CSV, you must also configure CSV import column delimiter and CSV import row delimiter.
CSV import column delimiter (Optional)
The column delimiter for CSV import using StreamLoad. The default is
_@dp@_. To use the default, leave this parameter empty. If your data contains the_@dp@_string, you must specify a custom delimiter.CSV import row delimiter (Optional)
The row delimiter for CSV import using StreamLoad. The default is
_#dp#_. To use the default, leave this parameter empty. If your data contains the_#dp#_string, you must specify a custom delimiter.Batch Write (Optional)
If enabled, data is written to the target in batches based on the Batch Write Data Size and Batch Write Number of Rows settings. This approach reduces the load per write operation and avoids oversized transactions. If disabled, data is written in a single transaction, which consumes more memory and increases the risk of failure.
Batch Write Data Size (Optional)
The maximum data size for a single write batch. You can set this parameter together with Batch Write Number of Rows. A write is triggered when either the data size or row count limit is reached, whichever occurs first. The default is 100M.
Batch Write Number of Rows (Optional)
The default is 500,000 rows. Data is written in batches, controlled by both Batch Write Number of Rows and Batch Write Data Size.
-
When accumulated data reaches the specified size or row count limit, the system immediately writes the batch to the target.
-
Set the Batch Write Data Size to the recommended 100 MB. Adjust the Batch Write Number of Rows based on your average record size. To maximize batching efficiency, use a large value for the row count. For example, if a single record is about 1 KB, you can set the batch size to 100 MB and the row count to a value greater than 102,400 (100 MB / 1 KB), such as 500,000. This configuration ensures that a write is triggered only when the data size reaches 100 MB.
Pre-SQL (Optional)
An SQL script to execute on the database before data import.
For example, to ensure service continuity, you can use a Pre-SQL script to create a temporary table Target_A before writing data to it. After the write operation is complete, you can use a Post-SQL script to rename the active service table Service_B to Temp_C, rename Target_A to Service_B, and then drop Temp_C.
Post-SQL (Optional)
An SQL script to execute on the database after data import.
Field mapping
Input field
Displays input fields from the upstream component.
Output field
Displays the output fields. You can perform the following operations:
-
Field Management: Click Field Management to select output fields.

-
Click the
icon to move fields from Selected Input Fields to Unselected Input Fields. -
Click the
icon to move fields from Unselected Input Fields to Selected Input Fields.
-
-
Batch Add: Click Batch Add to configure fields in bulk using JSON, TEXT, or DDL format.
-
Use JSON format. For example:
// Example: [{ "name": "user_id", "type": "String" }, { "name": "user_name", "type": "String" }]Notenamespecifies the imported field's name, andtypespecifies its data type. For example,"name":"user_id","type":"String"imports the field nameduser_idand sets its type to String. -
Use TEXT format. For example:
// Example: user_id,String user_name,String-
The row delimiter separates each field's information. The default is a newline character (\n). Semicolons (;) and periods (.) are also supported.
-
The column delimiter separates the field name and field type. The default is a comma (,).
-
-
Use DDL format. For example:
CREATE TABLE tablename ( id INT PRIMARY KEY, name VARCHAR(50), age INT );
-
-
Create an output field: Click + New Output Field, specify the Field name, and select a Type. After configuring the row, click the
icon to save.
Mapping
Map input fields to output fields. You can do this manually or use the Quick Mapping options: Map by position and Map by Name.
-
Map by Name: Maps input and output fields that have the same name.
-
Map by position: Maps fields based on their order in the input and output schemas, regardless of name.
-
-
Click Confirm to save the Doris output component configuration.

icon to save.