# Avro Decode

## ![](/files/M2irRtg4haXOzrRqLBLt) Avro Decode

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

The Avro Decode transform allows you to decode an Avro field and convert it to Hop fields.

### Supported Engines <a href="#supported_engines" id="supported_engines"></a>

| 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.                                                                                                                                                                                                                                                                                              |
| Source field      | Select the name of the field (of type: Avro) to convert                                                                                                                                                                                                                                                                                                                    |
| Source fields     | You can specify the names of the Avro fields to select from the Avro records. You can also specify to which Hop data type you want to convert to. Please note that complex data types like Map and Record are converted into JSON which you can then parse further in subsequent transforms. Note: The "Avro type" column is informational only. It’s not used at runtime. |
| Get fields button | You can use the "Get fields" button to retrieve the fields from the schema present in the metadata of the specified Avro Record source field. If there’s no metadata in this field, in case of sourcing from a Kafka consumer for example, you can opt to read from an Avro file.                                                                                          |


---

# 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-decode.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.
