Cassandra
  1. Cassandra
  2. CASSANDRA-3500

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

      1. 3500.patch.txt
        2 kB
        paul cannon

        Activity

        Hide
        Brandon Williams added a comment -

        Committed

        Show
        Brandon Williams added a comment - Committed
        Hide
        paul cannon added a comment -

        fixerated

        Show
        paul cannon added a comment - fixerated

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development