[ 
https://issues.apache.org/jira/browse/CASSANDRA-10733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Edge updated CASSANDRA-10733:
-------------------------------------
    Description: 
Auto-complete does not work correctly on some commands. For example:

Auto-complete on {{'desc table '}}, {{'desc function '}} and {{'desc type '}} 
works correctly. We see a list of all tables (or functions, types) in the 
current keyspace plus a list of all available keyspaces followed by a full stop 
(e.g. system.)
{code}
cqlsh:fxaggr> desc TABLE 
                     minutedata           system_distributed.
;                    rawtickdatabylp      system_traces.
<enter>              rawtickdatabysymbol  tickdata
daydata              system.              
fxaggr.              system_auth.     
{code}
{{'desc aggregate '}} displays the aggregates in the current keyspace (in this 
case, only 1, called 'average') but does not display a list of available 
keyspaces. It only displays the current keyspace, with no following full stop.
{code}
cqlsh:fxaggr> desc aggregate 
         ;        <enter>  average  fxaggr
{code}
Auto-complete on {{'desc table <keyspace>. '}} and {{'desc type <keyspace>.'}} 
works correctly. We see a list of all tables (or types) in the current keyspace
{code}
cqlsh:fxaggr> desc table fxaggr.
daydata              rawtickdatabylp      tickdata
minutedata           rawtickdatabysymbol  
{code}
Auto-complete on {{'desc function <keyspace>. '}} and {{'desc aggregate 
<keyspace>.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function <keyspace>'}} and 
hit tab, auto-complete will result in this: {{'desc function fxaggr.avg '}} and 
will not display the matching functions. If I type {{'desc function 
<keyspace>.'}} (note the trailing full stop) and hit tab, auto-complete will 
work correctly:
{code}
cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  
{code}
If I type {{'desc aggregate <keyspace>'}} and hit tab, auto-complete returns  
{{'desc aggregate <keyspace> '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate <keyspace>.'}} (note 
the trailing full stop) and hit tab, auto-complete will work correctly.


  was:
Auto-complete does not work correctly on some commands. For example:

Auto-complete on {{'desc table '}}, {{'desc function '}} and {{'desc type '}} 
works correctly. We see a list of all tables (or functions, types) in the 
current keyspace plus a list of all available keyspaces followed by a full stop 
(e.g. system.)
{code}
cqlsh:fxaggr> desc TABLE 
                     minutedata           system_distributed.
;                    rawtickdatabylp      system_traces.
<enter>              rawtickdatabysymbol  tickdata
daydata              system.              
fxaggr.              system_auth.     
{code}
{{'desc aggregate '}} displays the aggregates in the current keyspace (in this 
case, only 1, called 'average') but does not display a list of available 
keyspaces. It only displays the current keyspace, with no following full stop.
{code}
cqlsh:fxaggr> desc aggregate 
         ;        <enter>  average  fxaggr
{code}
Auto-complete on {{'desc table <keyspace>. '}} and {{'desc type <keyspace>.'}} 
works correctly. We see a list of all tables (or types) in the current keyspace

cqlsh:fxaggr> desc table fxaggr.
daydata              rawtickdatabylp      tickdata
minutedata           rawtickdatabysymbol  

Auto-complete on {{'desc function <keyspace>. '}} and {{'desc aggregate 
<keyspace>.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function <keyspace>'}} and 
hit tab, auto-complete will result in this: {{'desc function fxaggr.avg '}} and 
will not display the matching functions. If I type {{'desc function 
<keyspace>.'}} (note the trailing full stop) and hit tab, auto-complete will 
work correctly:
{code}
cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  
{code}
If I type {{'desc aggregate <keyspace>'}} and hit tab, auto-complete returns  
{{'desc aggregate <keyspace> '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate <keyspace>.'}} (note 
the trailing full stop) and hit tab, auto-complete will work correctly.



> Inconsistencies in CQLSH auto-complete
> --------------------------------------
>
>                 Key: CASSANDRA-10733
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Michael Edge
>            Assignee: Michael Edge
>            Priority: Trivial
>              Labels: cqlsh
>             Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete does not work correctly on some commands. For example:
> Auto-complete on {{'desc table '}}, {{'desc function '}} and {{'desc type '}} 
> works correctly. We see a list of all tables (or functions, types) in the 
> current keyspace plus a list of all available keyspaces followed by a full 
> stop (e.g. system.)
> {code}
> cqlsh:fxaggr> desc TABLE 
>                      minutedata           system_distributed.
> ;                    rawtickdatabylp      system_traces.
> <enter>              rawtickdatabysymbol  tickdata
> daydata              system.              
> fxaggr.              system_auth.     
> {code}
> {{'desc aggregate '}} displays the aggregates in the current keyspace (in 
> this case, only 1, called 'average') but does not display a list of available 
> keyspaces. It only displays the current keyspace, with no following full stop.
> {code}
> cqlsh:fxaggr> desc aggregate 
>          ;        <enter>  average  fxaggr
> {code}
> Auto-complete on {{'desc table <keyspace>. '}} and {{'desc type 
> <keyspace>.'}} works correctly. We see a list of all tables (or types) in the 
> current keyspace
> {code}
> cqlsh:fxaggr> desc table fxaggr.
> daydata              rawtickdatabylp      tickdata
> minutedata           rawtickdatabysymbol  
> {code}
> Auto-complete on {{'desc function <keyspace>. '}} and {{'desc aggregate 
> <keyspace>.'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function <keyspace>'}} 
> and hit tab, auto-complete will result in this: {{'desc function fxaggr.avg 
> '}} and will not display the matching functions. If I type {{'desc function 
> <keyspace>.'}} (note the trailing full stop) and hit tab, auto-complete will 
> work correctly:
> {code}
> cqlsh:fxaggr> desc function fxaggr.avg
> avgfinal  avgstate  
> {code}
> If I type {{'desc aggregate <keyspace>'}} and hit tab, auto-complete returns  
> {{'desc aggregate <keyspace> '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate <keyspace>.'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to