Concatenate strings(连接字符串)¶
Supported in: Batch, Faster, Streaming
Concatenates a list of strings with the specified separator.
Expression categories: String
Declared arguments¶
- Expressions: List of strings to be concatenated.
List\> - optional Null output if any input is null: If any of the input values are null, then the output should be null. If false, null values in the input are ignored.
Literal\ - optional Separator: Separator to be added between the strings.
Literal\
Output type: String
Examples¶
Example 1: Base case¶
Argument values:
- Expressions: [hello, world]
- Null output if any input is null: null
- Separator: _
Output: hello_world
Example 2: Null case¶
Argument values:
- Expressions: [hello, null, world, !]
- Null output if any input is null: null
- Separator: --
Output: hello--world--!
Example 3: Null case¶
Argument values:
- Expressions: [hello, null, world, !]
- Null output if any input is null: true
- Separator: --
Output: null
中文翻译¶
连接字符串¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
使用指定的分隔符连接字符串列表。
表达式类别: 字符串(String)
声明的参数¶
- 表达式(Expressions): 需要连接的字符串列表。
List\> - 可选 如果任一输入为空则输出空值(Null output if any input is null): 如果任意输入值为空,则输出应为空值。若设为 false,则输入中的空值将被忽略。
Literal\ - 可选 分隔符(Separator): 添加在字符串之间的分隔符。
Literal\
输出类型: String
示例¶
示例 1:基础情况¶
参数值:
- 表达式: [hello, world]
- 如果任一输入为空则输出空值: null
- 分隔符: _
输出: hello_world
示例 2:空值情况¶
参数值:
- 表达式: [hello, null, world, !]
- 如果任一输入为空则输出空值: null
- 分隔符: --
输出: hello--world--!
示例 3:空值情况¶
参数值:
- 表达式: [hello, null, world, !]
- 如果任一输入为空则输出空值: true
- 分隔符: --
输出: null