Functions.Map(Column[]) Method

Definition

Creates a new map column.

public static Microsoft.Spark.Sql.Column Map (params Microsoft.Spark.Sql.Column[] columns);
static member Map : Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.Column
Public Shared Function Map (ParamArray columns As Column()) As Column

Parameters

columns
Column[]

Columns to apply

Returns

Column object

Remarks

The input columns must be grouped as key-value pairs, e.g. (key1, value1, key2, value2, ...). The key columns must all have the same data type, and can't be null. The value columns must all have the same data type.

Applies to