Reshapes
← Relifold documentationFlatten
Explode one list-valued field into rows.
Flatten emits one row per element of a list-valued field while preserving the other fields.
Worked example
Flatten(
name="one-click-per-row",
input_spaces=("user-histories",),
output_space="clicks",
field="recent_history",
key="click_id",
)| Parameter | Default | Meaning |
|---|---|---|
input_spaces | required | The Space or Spaces read by the reshape. |
name | required | A stable node name shown in the pipeline and session. |
output_space | required | The Space receiving exploded rows. |
field | required | The list-valued field to explode. |
key | id | Name of the generated row-identity field. |
Output
One row per list element. Scalar values pass through as one row.