Closed
Description
Hello,
I'd like to propose extending CassandraAdminTemplate to support additional table options, such as default_time_to_live.
For example, the following code currently results in an error:
cassandraAdminTemplate.createTable(false, Table::class.java, mapOf("default_time_to_live" to 180000))
// -> Unable to recognize specified Table option 'default_time_to_live'
Additionally, it seems that several valid table options are not currently recognized:
- default_time_to_live
- speculative_retry
- memtable_flush_period_in_ms
- cdc
- read_repair
- min_index_interval
- max_index_interval
- crc_check_chance
These options are documented in the official Cassandra documentation:
- general
- min_index_interval, max_index_interval, crc_check
- crc_check_chance
Supporting these options in CassandraAdminTemplate would enable developers to define more fine-grained table configurations programmatically, aligning better with native CQL capabilities and increasing flexibility in schema management.
I'm happy to submit a PR if this change aligns with the project's direction.