[ 
https://issues.apache.org/jira/browse/CASSANDRA-18596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maciej Sokol updated CASSANDRA-18596:
-------------------------------------
    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.

  was:
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.


> Assertion error when describing mv as table
> -------------------------------------------
>
>                 Key: CASSANDRA-18596
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18596
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Maciej Sokol
>            Assignee: Maciej Sokol
>            Priority: Normal
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to