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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 1.0.5
    • Component/s: Tools
    • Labels:

      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

          Activity

            People

            • Assignee:
              thepaul paul cannon
              Reporter:
              thepaul paul cannon
              Reviewer:
              Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: