Right of string

Supported in: Batch, Streaming

Extract right hand side of a string based on index.

Expression categories: String

Declared arguments

  • Expression - no description
    Expression<String>
  • Length - The number of characters to take from the right of the string.
    Expression<Integer>

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
StringLengthOutput
null1null
Hello world!nullnull
nullnullnull

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!