cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahdi Mohammadi (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-11664) Tab completion in cqlsh doesn't work for capitalized letters
Date Tue, 24 May 2016 21:44:12 GMT


Mahdi Mohammadi commented on CASSANDRA-11664:

There are two separate issues here: 
1) cqlsh auto-complete does not consider mixed-case candidates.
2) When you type a mixed-case name without double quote, it is not accepted. (e.g. use Test;
issues an error, while use "Test"; works fine).

The first one seems to be only related to cqlsh part.
The second one is related to the server side, where when parsing the statement, removes casing
from the identifier. If you debug the server side, you will notice that the casing is preserved
until before parsing the statement.

> Tab completion in cqlsh doesn't work for capitalized letters
> ------------------------------------------------------------
>                 Key: CASSANDRA-11664
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: J.B. Langston
>            Assignee: Mahdi Mohammadi
>            Priority: Minor
>              Labels: cqlsh
> Tab completion in cqlsh doesn't work for capitalized letters, either in keyspace names
or table names. Typing quotes and a corresponding capital letter should complete the table/keyspace
name and the closing quote.
> {code}
> cqlsh> create keyspace "Test" WITH replication = {'class': 'SimpleStrategy', 'replication_factor':
> cqlsh> use "Tes
> cqlsh> use tes
> cqlsh> use Test;
> InvalidRequest: code=2200 [Invalid query] message="Keyspace 'test' does not exist"
> cqlsh> use "Test";
> cqlsh:Test> drop keyspace "Test"
> cqlsh:Test> create table "TestTable" (a text primary key, b text);
> cqlsh:Test> select * from "TestTable";
>  a | b
> ---+---
> (0 rows)
> cqlsh:Test> select * from "Test
> {code}

This message was sent by Atlassian JIRA

View raw message