Configuring variable parameters involves assigning values to variables within the code of a computing task, enabling automatic substitution of these parameters with their corresponding values. This topic outlines the process for configuring variables in real-time tasks, with Flink_SQL serving as an illustrative example.
Procedure
Navigate to the Dataphin home page and select Development from the top menu bar. This action takes you to the Data Development page by default.
Use the operation guide depicted below to choose the task you wish to configure and access the Configuration panel.
Within the Variable Configuration section of the configuration panel, set the task parameters.
In the Variable Configuration area, add parameters using expressions in the code editor, which will preload existing parameters. Use the Expression format:
${variable_name}
. You may also alter the parameter type and assign values in the parameter list.NoteThe variable configuration list enables batch operations. After selecting individual or all parameters, you can click
to batch edit the parameter type.
Parameter
Description
Parameter Name
The name of the parameter as defined in the code editor, supporting numbers, letters, underscores (_), dots (.), and hyphens (-), with a maximum length of 32 characters.
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 inherits the value defined by the global variable and setting it is not supported. For more information, see Create a global variable.
Space Name Variable: The value is the space name and conversion of space name variables to other types is not supported.
Local Variable: Supports up to 258 characters or can be left empty.
Non-variable: Definition is not supported.
To finalize the computing task's Variable Configuration, click OK.