convert sql type to avro type