-3

Now I want to insert some data from kafka to clickhouse. Is there any way to sense failure after asynchronous insertion failure because of ack?

CharmCcc
  • 113
  • 11

1 Answers1

0

It's not clear what you mean by "ack" -- In any case ClickHouse doesn't provide an asynchronous mechanism for acknowledgements. All acknowledgements are synchronous. For "async_inserts" you can wait for this acknowledgement by setting wait_for_async_insert true.

Geoff Genz
  • 2,006
  • 17
  • 20
  • I mean confirm the id of message from Kafka. – CharmCcc Jul 14 '22 at 09:28
  • This is still too vague. Do you mean the Kafka key? You can add a column named `_key` to your Kafka engine table that can be inserted into the associated materialized view. – Geoff Genz Jul 15 '22 at 16:44