Skip to main content
Version: edge

avro

The avro codec supports Apache Avro binary encoding.

The codec is configured with a schema following the avro schema specification

Configuration

valueoptionaldescription
schemanoThe avro schema to use
compressionyesThe compression codec to use, one of deflate, snappy, zstd, bzip2, xz, none

Mappings

avrotremor (to)tremor (from)
nullnullnull
booleanboolbool
inti64i64, u64
longi64i64, u64
floatf64f64
doublef64f64
bytesbytesbytes, string
stringstringstring
fixedbytesbytes
enumstringstring
unionvaluevalue
arrayarrayarray
maprecordrecord
recordrecordrecord
datei64i64
decimalbytesbytes
time-millisi64i64, u64
time-microsi64i64, u64
timestamp-millisi64i64, u64
timestamp-microsi64i64, u64
durationbytes[12]bytes[12]