Functions.When(Column, Object) Method

Definition

Evaluates a condition and returns one of multiple possible result expressions. If otherwise is not defined at the end, null is returned for unmatched conditions.

public static Microsoft.Spark.Sql.Column When (Microsoft.Spark.Sql.Column condition, object value);
static member When : Microsoft.Spark.Sql.Column * obj -> Microsoft.Spark.Sql.Column
Public Shared Function When (condition As Column, value As Object) As Column

Parameters

condition
Column

The condition to check.

value
Object

The value to set if the condition is true.

Returns

Column object

Applies to