Configure the Hologres input component

Updated at:

To synchronize data from a Hologres data source to a destination, first configure the Hologres input component to read from the source, and then configure the destination.

Limitations

The Hologres input component does not support reading views in a Hologres database.

Prerequisites

Steps

  1. In the top navigation bar of the Dataphin homepage, choose R&D > Data Integration.

  2. In the top navigation bar of the Data Integration page, select a Project. If you are in Dev-Prod mode, you also need to select an environment.

  3. In the left navigation pane, click Offline Integration. In the Offline Integration list, click the batch pipeline you want to configure.

  4. In the upper-right corner of the page, click Component Library to open the Component Library panel.

  5. In the Component Library panel, select Input in the left navigation pane. Then, find the Hologres component in the list on the right and drag it onto the canvas.

  6. On the Hologres input component card, click the image icon to open the Hologres Input Configuration dialog box.

  7. In the Hologres Input Configuration dialog box, configure the following parameters.

    Parameter

    Description

    Step name

    The name of the Hologres input component. Dataphin automatically generates a step name, which you can modify. The name must meet the following rules:

    • It can contain only Chinese characters, letters, underscores (_), and digits.

    • The length cannot exceed 64 characters.

    Data source

    The drop-down list displays all Hologres data sources, regardless of whether you have sync read permission.

    Schema

    Select the schema where the source table resides. If you do not select a schema, the default schema from the data source configuration is used. If no default schema is configured, the component retrieves tables from all schemas.

    Table

    Select the source table from the Hologres data source.

    If the Hologres data source does not contain any data tables, you must create them first. For more information, see Tables.

    Input filter

    Enter a filter condition for the input data. For example: ds=${bizdate}. The Input filter is useful for the following scenarios:

    • Reading a fixed partition of data.

    • Filtering data by using parameters.

    Output field

    This section displays all fields from the selected table that match the filter condition. If you do not need to output certain fields to downstream components, you can remove them.

    • To remove a single field: Click the sgaga icon in the Actions column for that field.

      image

    • To remove fields in bulk: Click Field Management. In the Field Management dialog box, select one or more fields from the Selected Input Fields list, click the image left arrow icon to move them to the Unselected Input Fields list, and then click OK.

      image..png

    • System field: A system field adds metadata to each row to identify its origin. This is useful when you synchronize data from multiple tables, such as from sharded databases and tables, to a single destination table. After you add a system field, its data type and mapping type are automatically populated.

      Click Field Management. In the Unselected Input Fields section of the dialog box, select the system fields that you want to add, click the right arrow icon to move them to the Selected Input Fields list, and then click OK. The following system fields are supported:

      • dp_datasource: The name of the synced data source.

      • dp_dbname: The name of the synced database (if any).

      • dp_schema: The name of the synced schema (if any).

      • dp_source_table: The name of the source table.

      • dp_read_timestamp: The timestamp when the SELECT operation started on the source.

      System fields support concatenating multiple system variables, for example, dp_dbname.dp_source_table.

      Note
      • You cannot modify the data type or mapping type of a system field.

      • The dp_read_timestamp field can be used only by itself and cannot be concatenated with other variables.

  8. Click Confirm to save the configuration for the Hologres input component.