Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-1524

remove requirement for unnecessary quoting in cli

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.6.6
    • Legacy/Tools
    • None

    Description

      Currently the cli requires quoting almost everything, and is fragile when they are not supplied. For example:

      [default@unknown] connect localhost/9160
      Connected to: "Test Cluster" on localhost/9160
      [default@unknown] use Keyspace1
      Authenticated to keyspace: Keyspace1
      [default@Keyspace1create column family CF1 with comparator='UTF8Type'
      acbec076-c597-11df-a09b-e700f669bcfc
      [default@Keyspace1] set CF1['key1'][col1] = 'value'
      line 1:16 mismatched input 'col1' expecting StringLiteral
      Exception in thread "main" java.lang.AssertionError

      At a minimum, it needs to not crash when the quotes are omitted (e.g. around col1 here). But what I'd really like is for quotes to be optional except when required to escape a significant character like a space or bracket, i.e., this entire session should work w/o any quotes at all.

      Attachments

        Activity

          People

            xedin Pavel Yaskevich
            jbellis Jonathan Ellis
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: