Split node allows you to break up a multi-valued column into multiple rows with new columns which includes a part of the value. |
Following are the steps to apply the Split node in a pipeline:
Field | Description |
---|---|
Unnest View Type | The unnest view type includes Outer and None. |
Split Function Name | The split function name. For details, see Split Function Name. |
Column Name(s) | The column names for the split columns. |
Expression | The expression can use any of the operators. The expression gets validated for syntax and semantic errors, and error messages are displayed on the top of the page. |
The Split By operations will be added in the Properties section as follows:
The Split transformation supports the following functions:
The following table describes the Split transformation functions in detail:
Function | New Columns | Example Expression | Example Output |
---|---|---|---|
Array Split | 1 (value) | split('a,b,c',',') | a b c |
Array Split with Position | 2 (position, value) | split('a,b,c',',') | 0 a 1 b 2 c |
Map Split | 2 (key, value) | str_to_map('k1:v1,k2:v2') | k1 v1 k2 v2 |