mirror of https://github.com/apache/cassandra
Mark system_views/system_virtual_schema as non-alterable keyspaces in cqlsh
patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for CASSANDRA-15711
This commit is contained in:
parent
579c9ab311
commit
39a0703b65
|
|
@ -1,4 +1,5 @@
|
|||
4.0-alpha4
|
||||
* Mark system_views/system_virtual_schema as non-alterable keyspaces in cqlsh (CASSANDRA-15711)
|
||||
* Fail incremental repair if an old version sstable is involved (CASSANDRA-15612)
|
||||
* Fix overflows on StreamingTombstoneHistogramBuilder produced by large deletion times (CASSANDRA-14773)
|
||||
* Mark system_views/system_virtual_schema as system keyspaces in cqlsh (CASSANDRA-15706)
|
||||
|
|
@ -56,8 +57,6 @@
|
|||
Merged from 3.11:
|
||||
* Allow sstableloader to use SSL on the native port (CASSANDRA-14904)
|
||||
Merged from 3.0:
|
||||
=======
|
||||
3.0.21
|
||||
* Memtable memory allocations may deadlock (CASSANDRA-15367)
|
||||
* Run evictFromMembership in GossipStage (CASSANDRA-15592)
|
||||
Merged from 2.2:
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class UnexpectedTableStructure(UserWarning):
|
|||
|
||||
|
||||
SYSTEM_KEYSPACES = ('system', 'system_schema', 'system_traces', 'system_auth', 'system_distributed', 'system_views', 'system_virtual_schema')
|
||||
NONALTERBALE_KEYSPACES = ('system', 'system_schema')
|
||||
NONALTERBALE_KEYSPACES = ('system', 'system_schema', 'system_views', 'system_virtual_schema')
|
||||
|
||||
|
||||
class Cql3ParsingRuleSet(CqlParsingRuleSet):
|
||||
|
|
|
|||
|
|
@ -820,3 +820,11 @@ class TestCqlshCompletion(CqlshCompletionCase):
|
|||
|
||||
def test_complete_in_drop_index(self):
|
||||
pass
|
||||
|
||||
def test_complete_in_alter_keyspace(self):
|
||||
self.trycompletions('ALTER KEY', 'SPACE ')
|
||||
self.trycompletions('ALTER KEYSPACE ', '', choices=[self.cqlsh.keyspace, 'system_auth',
|
||||
'system_distributed', 'system_traces'])
|
||||
self.trycompletions('ALTER KEYSPACE system_trac', "es WITH replication = {'class': '")
|
||||
self.trycompletions("ALTER KEYSPACE system_traces WITH replication = {'class': '", '',
|
||||
choices=['NetworkTopologyStrategy', 'SimpleStrategy'])
|
||||
|
|
|
|||
Loading…
Reference in New Issue