跳转至

Right of string(字符串右侧截取(Right of string))

Supported in: Batch, Faster, Streaming

Extract right hand side of a string based on index.

Expression categories: String

Declared arguments

  • Expression: no description
    Expression\
  • Length: The number of characters to take from the right of the string.
    Expression\

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: Hello world!
  • Length: 6

Output: world!


Example 2: Null case

Argument values:

  • Expression: String
  • Length: Length
String Length Output
null 1 null
Hello world! null null
null null null

Example 3: Edge case

Description: Length greater than the string length will return the full string.

Argument values:

  • Expression: Hello world!
  • Length: 15

Output: Hello world!



中文翻译


字符串右侧截取(Right of string)

支持:批处理(Batch)、快速计算(Faster)、流处理(Streaming)

根据索引提取字符串的右侧部分。

表达式类别: 字符串(String)

声明参数

  • 表达式(Expression): 无描述
    表达式\
  • 长度(Length): 从字符串右侧截取的字符数量。
    表达式\

输出类型: String

示例

示例1:基础情况

参数值:

  • 表达式: Hello world!
  • 长度: 6

输出: world!


示例2:空值情况

参数值:

  • 表达式: String
  • 长度: Length
String Length 输出
null 1 null
Hello world! null null
null null null

示例3:边界情况

描述: 当长度大于字符串长度时,将返回完整字符串。

参数值:

  • 表达式: Hello world!
  • 长度: 15

输出: Hello world!