cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Tolbert (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9664) Allow MV's select statements to be more complex
Date Thu, 17 Sep 2015 23:08:05 GMT


Andy Tolbert commented on CASSANDRA-9664:

Is it required for a where clause to be present now?  I've been experimenting on this branch
w/ the java-driver and noticed that I now get an NPE when not providing a where clause:

{noformat}ERROR [SharedPool-Worker-1] 2015-09-17 17:50:02,862 - Unexpected
exception during request
java.lang.NullPointerException: null
        at org.apache.cassandra.db.view.View.relationsToWhereClause( ~[main/:na]
        at org.apache.cassandra.cql3.statements.CreateViewStatement.announceMigration(
        at org.apache.cassandra.cql3.statements.SchemaAlteringStatement.execute(
        at org.apache.cassandra.cql3.QueryProcessor.processStatement(
        at org.apache.cassandra.cql3.QueryProcessor.process( ~[main/:na]
        at org.apache.cassandra.cql3.QueryProcessor.process( ~[main/:na]
        at org.apache.cassandra.cql3.CustomPayloadMirroringQueryHandler.process(
        at org.apache.cassandra.transport.messages.QueryMessage.execute(
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(
        at org.apache.cassandra.transport.Message$Dispatcher.channelRead0(
        at java.util.concurrent.Executors$ [na:1.8.0_25]
        at org.apache.cassandra.concurrent.AbstractTracingAwareExecutorService$
        at [main/:na]
        at [na:1.8.0_25]

Where on trunk C* surfaces an InvalidQueryException (as each primary key column I declare
must include a 'IS NOT NULL' in my where clause).  

I'm also wondering why the 'IS NOT NULL' declaration for primary keys is required (couldn't
that be implicit?) although thats not new on this branch and there might have been previous
conversations about that (I'll look through tickets and strikethrough and link to that if
I find it).

> Allow MV's select statements to be more complex
> -----------------------------------------------
>                 Key: CASSANDRA-9664
>                 URL:
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Carl Yeksigian
>            Assignee: Tyler Hobbs
>              Labels: client-impacting, doc-impacting
>             Fix For: 3.0.0 rc1
> [Materialized Views|] add support
for a syntax which includes a {{SELECT}} statement, but only allows selection of direct columns,
and does not allow any filtering to take place.
> We should add support to the MV {{SELECT}} statement to bring better parity with the
normal CQL {{SELECT}} statement, specifically simple functions in the selected columns, as
well as specifying a {{WHERE}} clause.

This message was sent by Atlassian JIRA

View raw message