# Row Flattener

## <img src="/files/F8v9T8aQZ3ccKrYazPpa" alt="" data-size="line"> Row Flattener

### Description <a href="#description" id="description"></a>

The Row Flattener transform allows you to flatten data sequentially.

| Hop Engine | <sup>✓</sup> |
| ---------- | ------------ |
| Spark      | ?            |
| Flink      | ?            |
| Dataflow   | ?            |

### Options

| Option               | Description                                                            |
| -------------------- | ---------------------------------------------------------------------- |
| Transform name       | Name of the transform; this name has to be unique in a single pipeline |
| The field to flatten | The field that must be flattened into different target fields          |
| Target fields        | The name of the target field to which the field is flattened           |

### Example

In the sample below, if you begin with the following data set…​

| Field1 | Field2 | Field3 | Flatten |
| ------ | ------ | ------ | ------- |
| A      | B      | C      | One     |
| Z      | Y      | X      | Two     |
| D      | E      | F      | Three   |
| W      | V      | U      | Four    |

The data set can be flattened to the example shown below:

| Field1 | Field2 | Field3 | Target1 | Target2 |
| ------ | ------ | ------ | ------- | ------- |
| A      | B      | C      | One     | Two     |
| D      | E      | F      | Three   | Four    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/rowflattener.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
