Offline mode variable configuration

更新时间: 2026-06-23 11:36:19

Variable parameter configuration assigns values to variables in computation task code so that the variables are automatically replaced with the corresponding values at runtime. Flink_SQL is used as an example.

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 by using expressions in the code editor. Existing parameters are automatically populated. Use the Expression format: ${variable_name} to insert variables. You can also 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: Uses the value defined by the global variable. This is the default setting and cannot be modified. 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.

上一篇: Configure FusionInsight Flink offline mode resources 下一篇: Offline mode runtime parameter configuration
阿里云首页 智能数据建设与治理 Dataphin 相关技术圈