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

cqlsh: Error running "select *" vs "select all columns"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.0.0
    • Legacy/CQL
    • None
    • Server: BDP/main
      CQLSH: 1.0.5

    • Normal

    Description

      • Query using "select *"
        cqlsh> select * from users;
        Exception: 'utf8' codec can't decode byte 0xb4 in position 7: unexpected code byte
        
      • Query selecting all columns
         select KEY, password, gender, session_token, state, birth_year from users;
           KEY |  password | gender | session_token | state | birth_year |
         user1 | ch@ngem3a |      f |          None |    TX |       1968 |
        
      • Test Data
        CREATE KEYSPACE ks1 with 
          strategy_class =  
            'org.apache.cassandra.locator.SimpleStrategy' 
          and strategy_options:replication_factor=1;
          
        use ks1;
        
        CREATE COLUMNFAMILY users (
          KEY varchar PRIMARY KEY, password varchar, gender varchar,
          session_token varchar, state varchar, birth_year bigint);
          
        INSERT INTO users (KEY, password, gender, state, birth_year) VALUES ('user1', 'ch@ngem3a', 'f', 'TX', '1968');    
        

      Attachments

        1. CASSANDRA-3311.patch
          1 kB
          Pavel Yaskevich

        Activity

          People

            xedin Pavel Yaskevich
            cdaw Cathy Daw
            Pavel Yaskevich
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: