Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F97E18263 for ; Mon, 15 Feb 2016 00:14:18 +0000 (UTC) Received: (qmail 66022 invoked by uid 500); 15 Feb 2016 00:14:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 65984 invoked by uid 500); 15 Feb 2016 00:14:18 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 65971 invoked by uid 99); 15 Feb 2016 00:14:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2016 00:14:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1EF6C2C1F58 for ; Mon, 15 Feb 2016 00:14:18 +0000 (UTC) Date: Mon, 15 Feb 2016 00:14:18 +0000 (UTC) From: "Stefania (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-10733) Inconsistencies in CQLSH auto-complete MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-10733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143873#comment-15143873 ] Stefania edited comment on CASSANDRA-10733 at 2/15/16 12:14 AM: ---------------------------------------------------------------- The cqlshlib tests [no longer run|http://cassci.datastax.com/view/trunk/job/trunk_cqlshlib/753/testReport/%28root%29/cqlshlib/test_create_test_db/] after this change, we need to set {{enable_user_defined_functions=true}} in cassandra.yaml before running them. cc [~mambocab], [~philipthompson]. was (Author: stefania): The cqlshlib tests [no longer run|http://cassci.datastax.com/view/trunk/job/trunk_cqlshlib/lastCompletedBuild/testReport/%28root%29/cqlshlib/test_create_test_db/] after this change, we need to set {{enable_user_defined_functions=true}} in cassandra.yaml before running them. cc [~mambocab], [~philipthompson]. > 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.6, 3.0.4, 3.4 > > 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)