[
https://issues.apache.org/jira/browse/CASSANDRA-10147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14727668#comment-14727668
]
T Jake Luciani edited comment on CASSANDRA-10147 at 9/2/15 5:24 PM:
--------------------------------------------------------------------
LGTM. Just add a test in case the logic isn't undone.
was (Author: tjake):
LGTM. Just add a test in case the logic is undone.
> Base table PRIMARY KEY can be assumed to be NOT NULL in MV creation
> -------------------------------------------------------------------
>
> Key: CASSANDRA-10147
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10147
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Carl Yeksigian
> Priority: Minor
> Fix For: 3.0.0 rc1
>
>
> {code}
> CREATE TABLE users (
> id uuid PRIMARY KEY,
> username text,
> email text,
> age int
> );
> CREATE MATERIALIZED VIEW users_by_username AS SELECT * FROM users WHERE
> username IS NOT NULL PRIMARY KEY (username, id);
> InvalidRequest: code=2200 [Invalid query] message="Primary key column 'id' is
> required to be filtered by 'IS NOT NULL'"
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)