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

Assertion error when describing mv as table

    XMLWordPrintableJSON

Details

    Description

      When describing materialized view as a table Cassandra gets an assertion error.

      Steps to reproduce:
      CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': '3'} AND durable_writes = true;
      CREATE TABLE test.table1 (key1 text,key2 int,value int,PRIMARY KEY (key1, key2));
      CREATE MATERIALIZED VIEW test.table1_by_value AS SELECT key1, key2, value FROM test.table1 WHERE value IS NOT NULL AND key1 IS NOT NULL AND key2 IS NOT NULL PRIMARY KEY(value, key1, key2);
      DESCRIBE MATERIALIZED VIEW test.table1;
      DESCRIBE TABLE test.table1_by_value;
      DESCRIBE TABLE test.non_existing;
       
      From the above the "DESCRIBE TABLE test.table1_by_value;" throws an assertion error while "DESCRIBE TABLE test.non_existing;" returns a meaningful error msg.

      Attachments

        Activity

          People

            masokol Maciej Sokol
            masokol Maciej Sokol
            Maciej Sokol
            Brandon Williams, Stefan Miklosovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m