Skip to content

Commit 59a71be

Browse files
committed
[PYTHON-1048] Add additional_write_policy and read_repair options to v4 metadata
1 parent 1e5633f commit 59a71be

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Unreleased
44

55
Features
66
--------
7+
* Add additional_write_policy and read_repair to system schema parsing (PYTHON-1048)
78
* Remove *read_repair_chance table options (PYTHON-1140)
89
910
Bug Fixes

cassandra/metadata.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2570,14 +2570,22 @@ class SchemaParserDSE60(SchemaParserV3):
25702570

25712571
class SchemaParserV4(SchemaParserV3):
25722572

2573-
recognized_table_options = tuple(
2574-
opt for opt in
2575-
SchemaParserV3.recognized_table_options
2576-
if opt not in (
2577-
# removed in V4: CASSANDRA-13910
2578-
'dclocal_read_repair_chance', 'read_repair_chance'
2579-
)
2580-
)
2573+
recognized_table_options = (
2574+
'additional_write_policy',
2575+
'bloom_filter_fp_chance',
2576+
'caching',
2577+
'cdc',
2578+
'comment',
2579+
'compaction',
2580+
'compression',
2581+
'crc_check_chance',
2582+
'default_time_to_live',
2583+
'gc_grace_seconds',
2584+
'max_index_interval',
2585+
'memtable_flush_period_in_ms',
2586+
'min_index_interval',
2587+
'read_repair',
2588+
'speculative_retry')
25812589

25822590
_SELECT_VIRTUAL_KEYSPACES = 'SELECT * from system_virtual_schema.keyspaces'
25832591
_SELECT_VIRTUAL_TABLES = 'SELECT * from system_virtual_schema.tables'

0 commit comments

Comments
 (0)