Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

Qash avatar image
Qash asked Erick Ramirez answered

Is there an option for Kafka connect to truncate a table before inserting records?

is there any option that the job should truncate all cassandra table before inserting the records ?

kafka-connector
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

That functionality doesn't exist.

If you want the table to be empty, you should initiate the TRUNCATE separately before you start an ingestion job. You can either do it via cqlsh or do it programatically. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.