Skip to content

UnPivot an array

Description

The UnPivot an array activity expands an array stored in a selected column into multiple rows. Each array element becomes a separate row value in the configured output column.

Supported Features

  • Array expansion: Converts each array element into its own row.
  • Custom output column: Writes the expanded element value to OutputColumn.
  • Context retention: Other row values are retained for each expanded array element.
  • Lineage support: Records that the selected column was folded into individual rows.

Input

TypeRequiredDescription
DataYesInput rows containing an array column.

Input Scenarios

1. Array Of Strings

IdTags
1["A","B","C"]

2. Array Of Numbers

IdScores
1[10,20,30]

3. Empty Or Null Arrays

Rows with empty or null arrays depend on transformer behavior and may produce no expanded rows for that input row.


Output

FieldTypeDescription
DataArrayTransformed rows with one row per array element. The expanded value is stored in OutputColumn.

Configuration Fields

Field NameTypeRequiredDescription
ColumnPrevious Data ColumnYesSource column containing the array to expand.
OutputColumnTextYesName of the output column that stores each array element.

Conditional Field Rendering Rules

No conditional configuration fields are defined for this activity.


Sample Input

IdNameTags
1Alice["Gold","Retail"]
2Bob["Silver"]

Sample Configuration

FieldValue
ColumnTags
OutputColumnTag

Sample Output

IdNameTag
1AliceGold
1AliceRetail
2BobSilver