Avro Encoder
Encodes Arrow RecordBatches to Apache Avro binary format.
Configuration
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
codec | string | yes | — | Must be "avro" |
Example
sinks:
my_kafka:
type: kafka
bootstrap_servers: localhost:9092
topic: events
encoding:
codec: avroWhen to Use
- Schema evolution - Supports forward/backward compatibility
- Compact binary format - Smaller than JSON
- Hadoop ecosystem - Native support in Hive, Spark