Step 3: Create a real-time compute table

更新时间:
复制 MD 格式

In the real-time development workflow, the MySQL oms_order table stores order details. To compute Gross Merchandise Volume (GMV) from incremental order data, you create real-time meta tables that read from the source tables.

Step 1: Create the oms_orders order source meta table

  1. Navigate to the Dataphin home page and single click Development in the top menu bar.

  2. Use the operation guide shown below to access the New Table dialog box.

    image.png

  3. On the New Table page, set the relevant parameters as follows:

    Parameter

    Description

    Table Type

    Choose Meta Table.

    Meta Table Name

    Enter oms_orders.

    Datasource

    Select the previously created flink_dataphin data source.

    Source Table

    Choose the oms_orders source table.

    Read Mode

    Select CDC Source Table for incremental streaming read.

    Select Directory

    The default is Table Management.

    Description

    Provide a brief description of the meta table, such as Order Source Table.

  4. To submit the meta table, single click OK.

Step 2: Create the ads_gross result meta table

  1. Use the operation guide shown below to access the New Table dialog box.

    image.png

  2. On the New Table page, set the relevant parameters as follows:

    Parameter

    Description

    Table Type

    Choose Meta Table.

    Meta Table Name

    Enter ads_gross.

    Datasource

    Select the previously created flink_dataphin data source.

    Source Table

    Choose the ads_gross source table.

    Read Mode

    Select JDBC Read/Write Table to enable JDBC support for table queries, writes, stream writes, and batch read/write operations.

    Select Directory

    The default is Table Management.

    Description

    Provide a brief description of the meta table, such as Category Sales Total Result Table.

  3. To submit the meta table, single click OK.