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

Tuple columns with UDTs not updated when the UDT is altered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.6
    • None
    • None
    • Low

    Description

      When a tuple column contains a UDT and the UDT is altered, we do not update the tuple column:

      cqlsh> create keyspace ks1 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1' };
      cqlsh> create type ks1.foo (a int, b int);
      cqlsh> create table ks1.mytable (a int primary key, b frozen<tuple<int, ks1.foo>>);
      cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1}));
      cqlsh> alter type ks1.foo ADD c int;
      cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1}));
      cqlsh> insert into ks1.mytable (a, b) VALUES (1, (1, {a: 1, b: 1, c: 1}));
      InvalidRequest: code=2200 [Invalid query] message="Unknown field 'c' in value of user defined type foo"
      

      Attachments

        1. 9192.txt
          4 kB
          Benjamin Lerer

        Issue Links

          Activity

            People

              blerer Benjamin Lerer
              thobbs Tom Hobbs
              Benjamin Lerer
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: