I went through the Cassandra Sink doc but I don't see how to specify the partition and clustering keys.
The doc says this:
You can configure this connector to manage the schema on the Cassandra cluster. When altering an existing table the key is ignored. This is to avoid the potential issues around changing a primary key on an existing table. The key schema is used to generate a primary key for the table when it is created.
If it is a new table, the Connector will use the Key schema (from the KStream I suppose) to create the primary key. That might be Ok for the Partition Key, but not for the Clustering key.
So are we forced to create all the tables with the right keys before running the Streaming app, or is there a way to adjust things ?