Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E03BA200B32 for ; Thu, 23 Jun 2016 22:55:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DEDD5160A59; Thu, 23 Jun 2016 20:55:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 318A9160A35 for ; Thu, 23 Jun 2016 22:55:18 +0200 (CEST) Received: (qmail 4947 invoked by uid 500); 23 Jun 2016 20:55:16 -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 4669 invoked by uid 99); 23 Jun 2016 20:55:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2016 20:55:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3C0992C1F68 for ; Thu, 23 Jun 2016 20:55:16 +0000 (UTC) Date: Thu, 23 Jun 2016 20:55:16 +0000 (UTC) From: "Tyler Hobbs (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11976) cqlsh tab completion doesn't work in 2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Jun 2016 20:55:19 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tyler Hobbs updated CASSANDRA-11976: ------------------------------------ Resolution: Duplicate Status: Resolved (was: Patch Available) > cqlsh tab completion doesn't work in 2.1 > ---------------------------------------- > > Key: CASSANDRA-11976 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11976 > Project: Cassandra > Issue Type: Bug > Components: CQL > Reporter: Yusuke Takata > Assignee: Yusuke Takata > Priority: Minor > Labels: cqlsh > Attachments: CASSANDRA-11976-1.patch, CASSANDRA-11976-2.patch > > > cqlsh tab completion doesn't work when there are two tables with the same prefix. > I found the similar completion issue at CASSANDRA-10733, but my problem is not fixed by the existing issue in 2.1. > {code} > cqlsh> CREATE KEYSPACE sample_ks WITH replication = {'class': 'SimpleStrategy' , 'replication_factor': 1 }; > cqlsh> CREATE TABLE sample_ks.tbl_a ( key text PRIMARY KEY ); > cqlsh> CREATE TABLE sample_ks.tbl_b ( key text PRIMARY KEY, value int ); > // works correctly > cqlsh> INSERT INTO sample_ks.tb > cqlsh> INSERT INTO sample_ks.tbl_ > // fix required > cqlsh> INSERT INTO samp > cqlsh> INSERT INTO sample_ks.tbl_( > {code} > Also, completion doesn't work with a single column table. > {code} > cqlsh> CREATE KEYSPACE sample_ks WITH replication = {'class': 'SimpleStrategy' , 'replication_factor': 1 }; > cqlsh> CREATE TABLE sample_ks.tbl_a ( key text PRIMARY KEY ); > cqlsh> CREATE TABLE sample_ks.tbl_b ( key text PRIMARY KEY, value int ); > // fix required (unnecessary comma) > cqlsh> INSERT INTO sample_ks.tbl_a > cqlsh> INSERT INTO sample_ks.tbl_a (key, > // fix required (no reaction) > cqlsh> INSERT INTO sample_ks.tbl_a (key) VALU > cqlsh> INSERT INTO sample_ks.tbl_a (key) VALU > // fix required (I can't insert only a key.) > cqlsh> INSERT INTO sample_ks.tbl_b > cqlsh> INSERT INTO sample_ks.tbl_b (key, value > {code} > I fixed the completion problem in 2.1 branch. Could someone review the attached patch? -- This message was sent by Atlassian JIRA (v6.3.4#6332)