# Avro Encode

## <img src="/files/bR9G0n9BkOBnLH9UirH2" alt="" data-size="line"> Avro Encode

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

The Avro Encode transform allows you to encode a new Avro Record field using a selection of Hop fields. The Avro schema will be part of the value metadata for this Avro Record field.

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

### Options

| Option                                         | Description                                                                                                                                                                            |
| ---------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Transform name                                 | Name of the transform. Note: This name has to be unique in a single pipeline.                                                                                                          |
| Output field name                              | Choose a name for the Avro Record output field.                                                                                                                                        |
| Schema name                                    | The name of the schema included in the output Avro record                                                                                                                              |
| Namespace                                      | An optional schema namespace                                                                                                                                                           |
| Documentation                                  | An optional schema documentation (doc) element                                                                                                                                         |
| The fields to encode in a generic Avro record: | You can specify the names of the Hop input fields to be included in the output Avro record field. Optionally you can store the values under a different name (key) in the Avro record. |
| Get fields button                              | You can use the "Get fields" button to retrieve the fields to be included in the Avro record.                                                                                          |


---

# 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/avro-encode.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.
