New features in ksqlDB 0.15

  • Expanded support for message keys
  • Terminate a persistent query on a DROP command

Read more: https://www.confluent.io/blog/ksqldb-0-15-features-updates/

I’m a beginner with ksqlDB. Does the drop command also physically delete the internal changelog / repartition topics created by the query ?

Based on the docs I think the topic is left alone unless you add the optional DELETE TOPIC syntax

DROP STREAM [IF EXISTS] stream_name [DELETE TOPIC];

If the DELETE TOPIC clause is present, the stream’s source topic is marked for deletion.

…… I’ve just realised you’re asking about the internal topics from the query itself, not the stream/table. I assume that the topics are cleaned up, but let me check and confirm.

1 Like

Yes, internal topic (like repartition topics and changelog topics) are cleaned up when you TERMINATE a query.

The DELETE TOPIC clause applies to the query output/result topic.

3 Likes