clickhouse-kafka-connect icon indicating copy to clipboard operation
clickhouse-kafka-connect copied to clipboard

Support automatic table schema evolution

Open mlivirov opened this issue 1 year ago • 2 comments
trafficstars

Description

In my organization we use clickhouse as analitical database that gets it's data from multiple sources via Kafka. Domain models change from time to time as business changes and we found a need to reflect those changes in the clickhouse manually a little inconvenient.

Would be awesome if this connector could propagate changes in schemas to the clickhouse tables automatically.

Additional context Compatibility modes in kafka:
https://docs.confluent.io/cloud/current/sr/fundamentals/schema-evolution.html#compatibility-types

JDBC connector that has this functionality: https://github.com/confluentinc/kafka-connect-jdbc

mlivirov avatar Dec 06 '23 20:12 mlivirov

Hi @mlivirov ! So this seems like it would have a race condition, if there are multiple tasks running - is that not the case with the jdbc connector mentioned?

Paultagoras avatar Jun 05 '24 14:06 Paultagoras

Not sure how it's done in jdbc connector. Wouldn't it be possible to use separate KeeperMap table to synchronize tasks?

mlivirov avatar Jun 05 '24 17:06 mlivirov