Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Avro To JSON Converter #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gabicasas
Copy link

@gabicasas gabicasas commented Nov 26, 2024

Hi.
This converter generate a json encapsulated in a String from AVRO field (key or value). This is useful when the source is AVRO but the sink doesn´t accept AVRO but is needed understand the info. In my case, the sink is AVRO topic and the source is Redis. This connector only accpet String or ByteArrays.
This connector is installed in DSP Kafka Connect and I think that can be useful in other scenarios.

@gabicasas gabicasas requested review from a team as code owners November 26, 2024 13:39
import java.util.Map;


public class AvroToJsonConverter extends AbstractKafkaAvroDeserializer implements Converter {
Copy link
Author

@gabicasas gabicasas Nov 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class convert a avro message in a JSON encapsulated into string. It´s useful, for example, at Redis sink conector because only accept String on bytearrys and we need understand the avron avro content in Redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants