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

Kafka Connect: Add mechanisms for routing records by topic name #11623

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mun1r0b0t
Copy link

Add 2 new routing mechanisms for records that use Kafka topic name for routing and update configuration for how to route records.

The changes move the routing logic to a separate class with different implementations that can be selected via the configuration. It preserves backwards compatibility of current behavior, while adding 2 new ways to route records to tables based on the Kafka topic and also allows custom implementations of how records are routed.

The two new routing mechanisms allow the connector to consume from multiple topics, eliminating the need to create separate connectors for each topic to consume from.

Closes #11163

Add 2 new routing mechanisms for records that use Kafka topic name for
routing and update configuration for how to route records.

The changes move the routing logic to a separate class with different
implementations that can be selected via the configuration. It preserves
backwards compatibility of current behavior, while adding 2 new ways to
route records to tables based on the Kafka topic and also allows
custom implementations of how records are routed.

The two new routing mechanisms allow the connector to consume from
multiple topics, eliminating the need to create separate connectors
for each topic to consume from.
@jbonofre
Copy link
Member

I wonder if it makes sense to do the routing in the Iceberg kafka connect sink.
Is it not the purpose of integration framework (Camel, Nifi, ...) to do the routing and implement EIPs ?

@bryanck what do you think ?

@mun1r0b0t just a note: your PR includes a lot of not necessary change (especially in the md file). Please avoid unnecessary reformating changes as it's harder to review.

@mun1r0b0t
Copy link
Author

Sorry about that. It was my over zealous auto-formatter. Reverted any changes that are not relevant to the PR.

@bryanck
Copy link
Contributor

bryanck commented Nov 22, 2024

I feel like we can take a much simpler approach for this. For more complex routing needs, an SMT makes more sense to me.

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

Successfully merging this pull request may close these issues.

Kafka Connect: route to table using topic name
3 participants