All Products
Search
Document Center

Dataphin:Offline mode variable configuration

Last Updated:Jan 21, 2025

Configuring variable parameters involves assigning values to variables within the computation task code, enabling automatic substitution of these variables with their corresponding values. This topic provides a guide on setting up variables for offline tasks, with Flink_SQL serving as an illustrative example for parameter configuration.

Procedure

  1. Navigate to the Development section via the top menu bar on the Dataphin home page. You will be directed to the data Development page by default.

  2. Using the operation guide depicted below, select the task you wish to configure and access the Configuration panel.

    image.png

  3. Within the Variable Configuration section of the configuration panel, set up the task parameters.

    In the Variable Configuration area, add parameters using expressions in the code editor, which will automatically populate with existing parameters. Use the Expression format: ${variable_name} to insert variables. Additionally, you can edit the parameter type and assign values in the parameter list.

    Note

    The variable configuration list allows for batch operations. After selecting individual or all parameters, you can perform batch modifications of parameter types by clicking image.png.

    Parameter

    Description

    Parameter Name

    The name of the parameter as defined in the code editor. Variable names can include numbers, letters, underscores (_), dots (.), and hyphens (-), and can be up to 32 characters long.

    Parameter Type

    Includes global variables, space name variables, local variables, and non-variable types. For more information, see Variable classification and assignment.

    Parameter Value

    • Global variable: This refers to the value defined by the global variable, which is the default setting. Modification of this setting is not supported. For more information, see Create a global variable.

    • Space name variable: The value is the space name. Conversion to other types is not supported.

    • Local variable: Supports a maximum of 258 characters or can be set to empty.

    • Non-variable: Definition is not supported.

  4. To finalize the Variable Configuration for the computation task, click OK.