# Static Schema Mapping

## ![](/files/GZYIStfIAOcRNBun6UUc) Static Schema Mapping

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

The Schema Mapping transform maps fields from an incoming stream over a specified Schema Definition. The result of this transform is an output stream that conforms to the mapped Schema Definition.

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

Schema mapping is a useful mapping transform to precede transforms like [Text File Output](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/textfileoutput.md) or [Excel Writer](/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/excelwriter.md) when we decide to refer to a [Schema Definition](/data-shaper-1.21/knowing-the-data-shaper-designer/index-2/static-schema-definition.md) to map the output layout of the file. By preceding these transforms with the Schema Mapping, the incoming stream will be already setup according to the expected output layout definition.

### Options

| Option             | Description                                                                                                                                                              |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Schema Definition  | Name of the [Schema Definition](/data-shaper-1.21/knowing-the-data-shaper-designer/index-2/static-schema-definition.md) that we are going to map to the incoming stream. |
| Schema Fields      | The set of schema fields that are mapped to stream fields.                                                                                                               |
| Stream Fields name | The set of stream fields that are mapped to schema fields.                                                                                                               |

* Use *Get fields* button to fill in the available fields from the incoming stream.
* Use the *Mapping* button to show a Mapping Dialog that will support the mapping process between the stream’s fields and the schema fields.


---

# 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/schemamapping.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.
