avro logic