DB Table Output (Real-Time Task)

  • Last update: April 22, 2025
  • icon

    Note:


    The Real-Time Task function in the Data Development module is currently in the internal testing stage. To try it or obtain detailed information, you can send an email to international@fanruan.com or click at https://help.fanruan.com/finedatalink-en/.

    Overview

    Version

    FineDataLink VersionFunctional Change
    4.1.11.4/
    4.1.13.3Real-Time Task in Data Development supported data writing into ClickHouse databases.
    4.2.1.4
    • Optimized the interaction of primary key configuration.

    • Supported new stream insertion without a primary key.

    • Supported timestamp marking.

    Application Scenario

    You may need to output data to specified databases in real time for reporting and real-time dashboard production and display.

    Function Description

    FineDataLink enables you to output data to specified databases in real time through the DB Table Output operator in Real-Time Task.

    Supported Data Source

    Supported data sources include MySQL, Oracle, PostgreSQL, SAP HANA, SQL Server, DM, GreenPlum, Doris, StarRocks, GaussDB 200, ClickHouse, TiDB, and Amazon Redshift.

    icon

    Note:


    1. Supported databases are identical to those available as target ends of pipeline tasks.

    2. FineDataLink of versions before V4.2.1.4 supports synchronization to Doris Primary Key models and Clickhouse CollapsingMergeTree engines only. FineDataLink of V4.2.1.4 and later versions support primary-key-based output, enabling writing to existing tables (including Duplicate Key models and mergeTree engines). You can use business fields as primary keys to update target tables when using CDC input sources. For details, see Doris Instruction, StarRocks Instruction, and ClickHouse Data Connection.

    Function Description

    Configuration ItemDescription
    Data SourceYou can select a data connection of a corresponding database.
    DatabaseYou can select a database.
    Target Table

    You can select a database table for data writing.

    • You can select Auto Created Table.

    • You can describe the table.

    • You can create tables manually.

    Field Mapping

    The configuration is the same as that in DB Table Output in scheduled tasks.

    • Existing Table: You cannot modify the primary key setting of the existing table.

    • Auto Created Table: You can set primary keys for a target table according to its characteristics.

    Write Method

    Write Method:

    1. Write Data into Target Table Directly is supported only.

    2. You can tick Logical Deletion.

    3. You can enable Timestamp Marking, which is supported in FineDataLink of V4.2.1.4 and later versions.

    4. You can configure primary key mapping, which is supported in FineDataLink of V4.2.1.4 and later versions.

    With Timestamp Marking enabled:

    • The system automatically adds/maintains a timestamp field recording data insertion time to/in the target table.

    • The field name is _fdl_update_timestamp, which is the same as the timestamp field name in Data Pipeline.

    Primary Key Mapping:

    1. You can select fields as logical primary keys for mapping to ensure data uniqueness.

    If the target table has a physical primary key, the primary key mapping is obtained automatically, which cannot be modified.

    If the target table has no physical primary key, you can select one or more configured field mapping rows for logical primary key mapping.

    2. You can skip primary key mapping in specific scenarios when writing data into Doris, StarRocks, and ClickHouse databases. For details, see StarRocks Instruction, Doris Instruction, and ClickHouse Data Connection.









    附件列表


    主题: Data Development - Real-Time Task
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy