Skip to content

How to push unstructured JSON data with Keys into a clickhouse table using this connector? #207

Answered by Paultagoras
sidharthramesh asked this question in Q&A
Discussion options

You must be logged in to vote

I'd ideally like a ReplacingMergeTree with the keys in the Kafka topic acting as the primary key, and each new message in the topic acting as a different version. And the value of the Kafka message should be inserted as a JSON / string so that it can be queried.

What you're probably looking for is a message transform!

  • Hoist Field, which should wrap the original message in a new field that you can set
  • Insert Field, which then lets you put the key into the message.

I'm unable to test it this moment, but that SHOULD solve your issue. Hope it helps!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Paultagoras
Comment options

@sidharthramesh
Comment options

@Paultagoras
Comment options

@Paultagoras
Comment options

Answer selected by Paultagoras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants