You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2023/12/19 03:47:00 UTC
[jira] [Commented] (CASSANDRA-18837) Tab complete datacenter values in cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-18837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17798416#comment-17798416 ]
Brad Schoening commented on CASSANDRA-18837:
--------------------------------------------
[~jeromatron] I noticed DESCRIBE CLUSTER doesn't list the datacenters either.
{code:java}
cqlsh> describe cluster
Cluster: Test Cluster
Partitioner: Murmur3Partitioner
Snitch: DynamicEndpointSnitch
{code}
Glancing at the Python driver, it seemed the driver may not expose this. The {{python-driver/cassandra/datastax/insights/reporter.py }}class uses:
{code:java}
'dataCenters': list(set(h.datacenter for h in self._session.cluster.metadata.all_hosts()
if (h.datacenter and
self._session.cluster.profile_manager.distance(h) == HostDistance.LOCAL))){code}
> Tab complete datacenter values in cqlsh
> ---------------------------------------
>
> Key: CASSANDRA-18837
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18837
> Project: Cassandra
> Issue Type: Task
> Components: CQL/Interpreter
> Reporter: Jeremy Hanna
> Priority: Normal
> Fix For: 5.x
>
>
> cqlsh has a number of great tab completions. For example, when creating a keyspace it will tab complete the syntax for options and give you options for the replication strategy. It doesn't show options for the data centers, which would be nice to have. The server has access to the list of data centers in the cluster. So there shouldn't be a reason why that couldn't tab complete.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org