File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
tests/integration/standard Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Bug Fixes
9
9
Other
10
10
-----
11
11
* Use global variable for libev loops so it can be subclassed (PYTHON-973)
12
+ * Update SchemaParser for V4 (PYTHON-1006)
12
13
13
14
3.14.0
14
15
======
Original file line number Diff line number Diff line change @@ -2415,7 +2415,15 @@ def _schema_type_to_cql(type_string):
2415
2415
2416
2416
2417
2417
class SchemaParserV4 (SchemaParserV3 ):
2418
- pass
2418
+
2419
+ recognized_table_options = tuple (
2420
+ opt for opt in
2421
+ SchemaParserV3 .recognized_table_options
2422
+ if opt not in (
2423
+ # removed in V4: CASSANDRA-13910
2424
+ 'dclocal_read_repair_chance' , 'read_repair_chance'
2425
+ )
2426
+ )
2419
2427
2420
2428
2421
2429
class TableMetadataV3 (TableMetadata ):
Original file line number Diff line number Diff line change @@ -470,8 +470,10 @@ def test_non_size_tiered_compaction(self):
470
470
cql = table_meta .export_as_string ()
471
471
self .assertIn ("'tombstone_threshold': '0.3'" , cql )
472
472
self .assertIn ("LeveledCompactionStrategy" , cql )
473
- self .assertNotIn ("min_threshold" , cql )
474
- self .assertNotIn ("max_threshold" , cql )
473
+ # formerly legacy options; reintroduced in 4.0
474
+ if CASSANDRA_VERSION < Version ('4.0' ):
475
+ self .assertNotIn ("min_threshold" , cql )
476
+ self .assertNotIn ("max_threshold" , cql )
475
477
476
478
def test_refresh_schema_metadata (self ):
477
479
"""
You can’t perform that action at this time.
0 commit comments