Equals

Supported in: Batch, Streaming

Returns true if left and right are equal.

Expression categories: Boolean

Declared arguments

  • Left - Left expression.
    Expression<ComparableType>
  • Right - Right expression.
    Expression<ComparableType>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Left: a
  • Right: b
abOutput
11true
10false

Example 2: Base case

Argument values:

  • Left: a
  • Right: b
abOutput
1.01true
1.00false

Example 3: Base case

Argument values:

  • Left: departure
  • Right: destination
departuredestinationOutput
HeathrowHeathrowtrue
HeathrowGatwickfalse

Example 4: Null case

Argument values:

  • Left: departure
  • Right: destination
departuredestinationOutput
nullnulltrue
nullHeathrowfalse