[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2016-01-28 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Attachment: CASSANDRA-2.2-10733-added-tests-for-describe.patch

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.2.x, 3.x
>
> Attachments: 10733-fix-space-2.2.txt, 
> CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-2.2-10733-added-tests-for-describe.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2016-01-28 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Attachment: (was: CASSANDRA-2.2-10733-added-tests-for-describe.patch)

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.2.x, 3.x
>
> Attachments: 10733-fix-space-2.2.txt, 
> CASSANDRA-2.2-10733-CQLSH-Auto.patch, CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2016-01-28 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Attachment: CASSANDRA-2.2-10733-tests.patch

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.2.x, 3.x
>
> Attachments: 10733-fix-space-2.2.txt, 
> CASSANDRA-2.2-10733-CQLSH-Auto.patch, CASSANDRA-2.2-10733-tests.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-12-29 Thread Tyler Hobbs (JIRA)

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

Tyler Hobbs updated CASSANDRA-10733:

Attachment: 10733-fix-space-2.2.txt

Thanks for the patch!  Sorry for the slow response, I had some higher priority 
things to take care of before the holidays.

Your attached patch to fix the first issue looks good to me.  However, I think 
your suggested approach for fixing the trailing space after a partial 
autocomplete is not correct.  The root of the problem seems to be that after a 
partial completion, it's recursively looking for further completions, when we 
know that this isn't necessary.  I've attached a patch that avoids recursion in 
this case.

Would you mind adding some test cases for both of these in 
{{pylib/cqlshlib/test/test_cqlsh_completion.py}}?

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: 10733-fix-space-2.2.txt, 
> CASSANDRA-2.2-10733-CQLSH-Auto.patch, CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-12-18 Thread Joshua McKenzie (JIRA)

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

Joshua McKenzie updated CASSANDRA-10733:

Reviewer: Tyler Hobbs

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-12-18 Thread Aleksey Yeschenko (JIRA)

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

Aleksey Yeschenko updated CASSANDRA-10733:
--
Issue Type: Bug  (was: Improvement)

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Bug
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-22 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Attachment: CASSANDRA-2.2-10733-CQLSH-Auto.patch

Patch for v2.2.

No patch required for v2.1 as this only impacts AGGREGATES, which were added in 
v2.2

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Improvement
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-2.2-10733-CQLSH-Auto.patch, 
> CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-20 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Attachment: CASSANDRA-3.0-10733-CQLSH-Auto.patch

Patch to fix first of the two issues mentioned in this JIRA.

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Improvement
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
> Attachments: CASSANDRA-3.0-10733-CQLSH-Auto.patch
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Component/s: CQL

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Improvement
>  Components: CQL, Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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.)

{{cqlsh:fxaggr> desc TABLE 
 minutedata   system_distributed.
;rawtickdatabylp  system_traces.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth.  }}

'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.

cqlsh:fxaggr> desc aggregate 
 ;  average  fxaggr   

Auto-complete on 'desc table . ' and 'desc type .' 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 . ' and 'desc aggregate .' 
works inconsistently. In a keyspace with 2 functions, both beginning with the 
letters 'avg', if I type 'desc function ' 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 .' (note the trailing 
full stop) and hit tab, auto-complete will work correctly:

cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  

If I type 'desc aggregate ' and hit tab, auto-complete returns  'desc 
aggregate  '  (it adds a space) and does not show me the list of 
available aggregates. If I type 'desc aggregate .' (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.)

cqlsh:fxaggr> desc TABLE 
 minutedata   system_distributed.
;rawtickdatabylp  system_traces.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth.  

'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.

cqlsh:fxaggr> desc aggregate 
 ;  average  fxaggr   

Auto-complete on 'desc table . ' and 'desc type .' 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 . ' and 'desc aggregate .' 
works inconsistently. In a keyspace with 2 functions, both beginning with the 
letters 'avg', if I type 'desc function ' 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 .' (note the trailing 
full stop) and hit tab, auto-complete will work correctly:

cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  

If I type 'desc aggregate ' and hit tab, auto-complete returns  'desc 
aggregate  '  (it adds a space) and does not show me the list of 
available aggregates. If I type 'desc aggregate .' (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.)
> {{cqlsh:fxaggr> desc TABLE 
>  minutedata   system_distributed.
> ;rawtickdatabylp  system_traces.
>   rawtickdatabysymbol  tickdata
> daydata  system.

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Labels: cqlsh lhf  (was: cqlsh)

> 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, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete does not work correctly on some commands. For example:
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

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

Michael Edge updated CASSANDRA-10733:
-
Reproduced In: 2.2.3

> 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, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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


[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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.)
{color:green}works correctly{color}
{code}
cqlsh:fxaggr> desc TABLE 
 minutedata   system_distributed.
;rawtickdatabylp  system_traces.
  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}
{color:red}fix required{color}
cqlsh:fxaggr> desc aggregate 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
works correctly. We see a list of all tables (or types) in the current keyspace
{color:green}works correctly{color}
{code}
cqlsh:fxaggr> desc table fxaggr.
daydata  rawtickdatabylp  tickdata
minutedata   rawtickdatabysymbol  
{code}
Auto-complete on {{'desc function . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (note the trailing full stop) and hit tab, auto-complete will 
work correctly:
{color:red}fix required{color}
{code}
cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  
{code}
If I type {{'desc aggregate '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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.
  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 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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 . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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 

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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 in cqlsh does not work correctly on some commands. We see some 
inconsistent behaviour when completing part of the statement and hitting the 
tab key.

{color:green}Works correctly{color}
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.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth. 
{code}

{color:red}Fix required{color}
{{'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 
 ;  average  fxaggr
{code}

{color:green}Works correctly{color}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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}

{color:red}Fix required{color}
Auto-complete on {{'desc function . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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:

{color:green}Works correctly{color}
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.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth. 
{code}

{color:red}Fix required{color}
{{'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 
 ;  average  fxaggr
{code}

{color:green}Works correctly{color}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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}

{color:red}Fix required{color}
Auto-complete on {{'desc function . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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, lhf
>

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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.
  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 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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 . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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.
  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 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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 . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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 

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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.
  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 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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 . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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.)

{{cqlsh:fxaggr> desc TABLE 
 minutedata   system_distributed.
;rawtickdatabylp  system_traces.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth.  }}

'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.

cqlsh:fxaggr> desc aggregate 
 ;  average  fxaggr   

Auto-complete on 'desc table . ' and 'desc type .' 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 . ' and 'desc aggregate .' 
works inconsistently. In a keyspace with 2 functions, both beginning with the 
letters 'avg', if I type 'desc function ' 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 .' (note the trailing 
full stop) and hit tab, auto-complete will work correctly:

cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  

If I type 'desc aggregate ' and hit tab, auto-complete returns  'desc 
aggregate  '  (it adds a space) and does not show me the list of 
available aggregates. If I type 'desc aggregate .' (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.
> ;

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Michael Edge (JIRA)

 [ 
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:

{color:green}Works correctly{color}
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.
  rawtickdatabysymbol  tickdata
daydata  system.  
fxaggr.  system_auth. 
{code}

{color:red}Fix required{color}
{{'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 
 ;  average  fxaggr
{code}

{color:green}Works correctly{color}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
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}

{color:red}Fix required{color}
Auto-complete on {{'desc function . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (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 '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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.)
{color:green}works correctly{color}
{code}
cqlsh:fxaggr> desc TABLE 
 minutedata   system_distributed.
;rawtickdatabylp  system_traces.
  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}
{color:red}fix required{color}
cqlsh:fxaggr> desc aggregate 
 ;  average  fxaggr
{code}
Auto-complete on {{'desc table . '}} and {{'desc type .'}} 
works correctly. We see a list of all tables (or types) in the current keyspace
{color:green}works correctly{color}
{code}
cqlsh:fxaggr> desc table fxaggr.
daydata  rawtickdatabylp  tickdata
minutedata   rawtickdatabysymbol  
{code}
Auto-complete on {{'desc function . '}} and {{'desc aggregate 
.'}} works inconsistently. In a keyspace with 2 functions, both 
beginning with the letters 'avg', if I type {{'desc function '}} 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 
.'}} (note the trailing full stop) and hit tab, auto-complete will 
work correctly:
{color:red}fix required{color}
{code}
cqlsh:fxaggr> desc function fxaggr.avg
avgfinal  avgstate  
{code}
If I type {{'desc aggregate '}} and hit tab, auto-complete returns  
{{'desc aggregate  '}}  (it adds a space) and does not show me the 
list of available aggregates. If I type {{'desc aggregate .'}} (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, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete does not work correctly on some commands. For 

[jira] [Updated] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete

2015-11-19 Thread Tyler Hobbs (JIRA)

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

Tyler Hobbs updated CASSANDRA-10733:

Component/s: Tools

> Inconsistencies in CQLSH auto-complete
> --
>
> Key: CASSANDRA-10733
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10733
> Project: Cassandra
>  Issue Type: Improvement
>  Components: Tools
>Reporter: Michael Edge
>Assignee: Michael Edge
>Priority: Trivial
>  Labels: cqlsh, lhf
> Fix For: 2.1.x, 2.2.x, 3.x
>
>
> Auto-complete in cqlsh does not work correctly on some commands. We see some 
> inconsistent behaviour when completing part of the statement and hitting the 
> tab key.
> {color:green}Works correctly{color}
> 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.
>   rawtickdatabysymbol  tickdata
> daydata  system.  
> fxaggr.  system_auth. 
> {code}
> {color:red}Fix required{color}
> {{'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 
>  ;  average  fxaggr
> {code}
> {color:green}Works correctly{color}
> Auto-complete on {{'desc table . '}} and {{'desc type 
> .'}} 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}
> {color:red}Fix required{color}
> Auto-complete on {{'desc function . '}} and {{'desc aggregate 
> .'}} works inconsistently. In a keyspace with 2 functions, both 
> beginning with the letters 'avg', if I type {{'desc function '}} 
> 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 
> .'}} (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 '}} and hit tab, auto-complete returns  
> {{'desc aggregate  '}}  (it adds a space) and does not show me the 
> list of available aggregates. If I type {{'desc aggregate .'}} 
> (note the trailing full stop) and hit tab, auto-complete will work correctly.



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