String contains

Supported in: Batch, Streaming

Expression categories: Boolean, String

Declared arguments

  • Expression - no description
    Expression<String>
  • Ignore case - Boolean to decide if comparison should be case-sensitive or not.
    Literal<Boolean>
  • Value - no description
    Expression<String>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Expression: ... Hello world
  • Ignore case: false
  • Value: hello

Output: false


Example 2: Base case

Argument values:

  • Expression: ... Hello world
  • Ignore case: false
  • Value: Hello

Output: true


Example 3: Base case

Argument values:

  • Expression: ... Hello world
  • Ignore case: true
  • Value: hello

Output: true


Example 4: Null case

Argument values:

  • Expression: null
  • Ignore case: false
  • Value: null

Output: false


Example 5: Null case

Argument values:

  • Expression: null
  • Ignore case: false
  • Value: Hello

Output: false


Example 6: Null case

Argument values:

  • Expression: hello world
  • Ignore case: false
  • Value: null

Output: false