Share via


Functions.Split Method

Definition

Overloads

Split(Column, String)

Splits string with a regular expression pattern.

Split(Column, String, Int32)

Splits str around matches of the given pattern.

Split(Column, String)

Splits string with a regular expression pattern.

public static Microsoft.Spark.Sql.Column Split (Microsoft.Spark.Sql.Column column, string pattern);
static member Split : Microsoft.Spark.Sql.Column * string -> Microsoft.Spark.Sql.Column
Public Shared Function Split (column As Column, pattern As String) As Column

Parameters

column
Column

Column to apply

pattern
String

Regular expression pattern

Returns

Column object

Applies to

Split(Column, String, Int32)

Splits str around matches of the given pattern.

[Microsoft.Spark.Since("3.0.0")]
public static Microsoft.Spark.Sql.Column Split (Microsoft.Spark.Sql.Column column, string pattern, int limit);
[<Microsoft.Spark.Since("3.0.0")>]
static member Split : Microsoft.Spark.Sql.Column * string * int -> Microsoft.Spark.Sql.Column
Public Shared Function Split (column As Column, pattern As String, limit As Integer) As Column

Parameters

column
Column

Column to apply

pattern
String

Regular expression pattern

limit
Int32

An integer expression which controls the number of times the regex is applied. 1. limit greater than 0: The resulting array's length will not be more than limit, and the resulting array's last entry will contain all input beyond the last matched regex. 2. limit less than or equal to 0: regex will be applied as many times as possible, and the resulting array can be of any size.

Returns

Column object

Attributes

Applies to