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

cqlsh ASSUME doesn't work when using SELECT keyspace.cfname syntax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.5
    • Legacy/Tools
    • Low

    Description

      After assigning an ASSUME type to some columnfamily CF in keyspace K, if a SELECT is subsequently done on CF while the session is using a different keyspace, the ASSUME does not take effect:

      cqlsh> USE ks;
      cqlsh:ks> CREATE COLUMNFAMILY cf (key int PRIMARY KEY, col int);
      cqlsh:ks> INSERT INTO cf (key, col) VALUES (99, 1633837924);
      cqlsh:ks> ASSUME cf(col) VALUES ARE ascii;
      cqlsh:ks> SELECT * FROM cf;
       KEY |  col |
        99 | abcd |
      
      cqlsh:ks> USE system;
      cqlsh:system> SELECT * FROM ks.cf;
       KEY |        col |
        99 | 1633837924 |
      
      

      the output from both {{SELECT}}s there should be the same.

      Attachments

        1. 3500.patch.txt
          2 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: