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

cqlsh: in cql3 mode, use cql3 quoting when outputting cql

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.1
    • Legacy/Tools

    Description

      when cqlsh needs to output a column name or other term which needs quoting (say, if you run DESCRIBE KEYSPACE and some column name has a space in it), it currently only knows how to quote in the cql2 way. That is,

      cqlsh:foo> describe columnfamily bar
      CREATE COLUMNFAMILY bar (
        a int PRIMARY KEY,
        'b c' text
      ) WITH
      ...
      

      cql3 does not recognize single quotes around column names, or columnfamily or keyspace names either. cqlsh ought to learn how to use double-quotes instead when in cql3 mode.

      Attachments

        1. 4173-3.patch.txt
          16 kB
          paul cannon

        Activity

          People

            thepaul paul cannon
            thepaul paul cannon
            paul cannon
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: