[
https://issues.apache.org/jira/browse/CASSANDRA-18837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092537#comment-18092537
]
Bret McGuire commented on CASSANDRA-18837:
------------------------------------------
So the Python driver should have per-host data center information stored in
cluster metadata. We gather it from the system tables
[here|https://github.com/apache/cassandra-python-driver/blob/3.30.1/cassandra/cluster.py#L3864]
(for system.local) and
[here|https://github.com/apache/cassandra-python-driver/blob/3.30.1/cassandra/cluster.py#L3926]
(for system.peers or peers_v2). We then store the info on the host object via
_update_location_info
[here|https://github.com/apache/cassandra-python-driver/blob/3.30.1/cassandra/cluster.py#L3866]
and
[here|https://github.com/apache/cassandra-python-driver/blob/3.30.1/cassandra/cluster.py#L3933]
(respectively).
I'm not familiar enough with the cqlsh code base to have a good handle on
what's involved in leveraging this information to perform the kind fo
completion requested... but the underlying data should be accessible on a given
Host object.
> Tab complete datacenter values in cqlsh
> ---------------------------------------
>
> Key: CASSANDRA-18837
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18837
> Project: Apache Cassandra
> Issue Type: Task
> Components: CQL/Interpreter
> Reporter: Jeremy Hanna
> Assignee: Brad Schoening
> Priority: Normal
> Fix For: 6.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: [email protected]
For additional commands, e-mail: [email protected]