# Stream Avro File Reader

The **Stream Avro File Reader** connector allows you to read Avro files triggering subpipelines to process each message individually. The connector should be used for large files.

Avro is a popular data serialization framework utilized within the Hadoop Big Data ecosystem, known for its schema evolution support and compactness. For more information, [see the official website](https://avro.apache.org/).

## **Parameters**

Take a look at the configuration parameters of the connector. Parameters supported by [Double Braces expressions](/documentation/connectors-and-triggers/double-braces/overview.md) are marked with `(DB)`.

### **General Tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>File Name</strong> <code>(DB)</code></td><td>The file name of the Avro file to be read.</td><td>{{ message.fileName }}</td><td>String</td></tr><tr><td><strong>Parallel Execution</strong></td><td>Occurs in parallel with loop execution.</td><td>false</td><td>Boolean</td></tr><tr><td><strong>Fail On Error</strong></td><td>If the option is active, the execution of the pipeline with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the <code>"success"</code> property.</td><td>false</td><td>Boolean</td></tr></tbody></table>

### **Documentation Tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td>Section for documenting any necessary information about the connector configuration and business rules.</td><td>N/A</td><td>String</td></tr></tbody></table>

{% hint style="info" %}
A compressed Avro file generates JSON content larger than the file itself when read. You must check if the pipeline has enough memory to handle the data, since it will be stored in the pipeline's memory.
{% endhint %}

## **Usage examples**

### **Reading Avro file**

* **File Name:** file.avro
* **Parallel:** deactivated

**Output:**

```
{
	"total": 1000,
	"success": 1000,
	"failed": 0
}

```

If the lines have been processed correctly, their respective subpipelines return { `"success": true }` for each individual line.


---

# 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.digibee.com/documentation/connectors-and-triggers/connectors/files/stream-avro-file-reader.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.
