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

CQLSH in CQL2 Mode (-2) lowercases keyspace after use statements breaking autocomplete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Won't Fix
    • None
    • Legacy/Tools
    • None
    • Low

    Description

      When running Cqlsh in cql2 mode, using a keyspace lowercases it.

      cqlsh> CREATE KEYSPACE MixedCase WITH strategy_class = 'SimpleStrategy' AND strategy_options:replication_factor = 1;
      cqlsh> use MixedCase ;
      cqlsh:mixedcase> 
      

      This is slightly annoying since cqlsh cannot autocomplete correctly with the wrong keyspace name.

      cqlsh:mixedcase> CREATE TABLE test (a int PRIMARY KEY , b int ) ;
      cqlsh:mixedcase> SELECT * FROM [TAB PRESSED]
      HiveMetaStore.  MixedCase.      cfs.            cfs_archive.    cql3ks.         dse_security.   dse_system.     fun.            system.         system_traces.  testKS.  
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rspitzer Russell Spitzer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: