Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
4.0.11, 4.1.3, 5.0-alpha1, 5.0
-
None
-
Correctness
-
Normal
-
Normal
-
User Report
-
All
-
None
-
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.