From b3f27381a5efcf3d06bceb211c72479abcd6004a Mon Sep 17 00:00:00 2001 From: Eduard Tudenhoefner Date: Wed, 8 Apr 2020 11:43:39 +0200 Subject: [PATCH] Mark system_views/system_virtual_schema as system keyspaces in cqlsh patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for CASSANDRA-15706 This is so that those keyspaces don't show up in tab completions. This also fixes the cqlsh completion tests. --- pylib/cqlshlib/cql3handling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/cqlshlib/cql3handling.py b/pylib/cqlshlib/cql3handling.py index eabb059c66..8738f10eb9 100644 --- a/pylib/cqlshlib/cql3handling.py +++ b/pylib/cqlshlib/cql3handling.py @@ -34,7 +34,7 @@ class UnexpectedTableStructure(UserWarning): return 'Unexpected table structure; may not translate correctly to CQL. ' + self.msg -SYSTEM_KEYSPACES = ('system', 'system_schema', 'system_traces', 'system_auth', 'system_distributed') +SYSTEM_KEYSPACES = ('system', 'system_schema', 'system_traces', 'system_auth', 'system_distributed', 'system_views', 'system_virtual_schema') NONALTERBALE_KEYSPACES = ('system', 'system_schema')