Fix missing Keyspaces in cqlsh describe output

Patch by Dinesh Joshi; reviewed by Jon Haddad and David Capwell for CASSANDRA-15576
This commit is contained in:
Dinesh A. Joshi 2020-02-17 16:38:28 -08:00
parent d9798369dd
commit 4e0fccc3ed
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
4.0-alpha4
* Fix missing Keyspaces in cqlsh describe output (CASSANDRA-15576)
* Fix multi DC nodetool status output (CASSANDRA-15305)
* Added documentation covering new Netty based internode messaging (CASSANDRA-15478)
* Add documentation of hints (CASSANDRA-15491)

View File

@ -619,7 +619,7 @@ class Shell(cmd.Cmd):
result, = self.session.execute("select * from system.local where key = 'local'")
vers = {
'build': result['release_version'],
'protocol': result['native_protocol_version'],
'protocol': self.conn.protocol_version,
'cql': result['cql_version'],
}
self.connection_versions = vers
@ -628,7 +628,7 @@ class Shell(cmd.Cmd):
# TODO remove after virtual tables are added to connection metadata
if self.virtual_keyspaces is None:
self.init_virtual_keyspaces_meta()
return list(map(str, list(self.conn.metadata.keyspaces.keys())))
return list(map(str, list(self.conn.metadata.keyspaces.keys()) + list(self.virtual_keyspaces.keys())))
def get_columnfamily_names(self, ksname=None):
if ksname is None: