[ 
https://issues.apache.org/jira/browse/CASSANDRA-17879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610328#comment-17610328
 ] 

Brad Schoening commented on CASSANDRA-17879:
--------------------------------------------

[~smiklosovic] this required a bit more thought than it seemed at first. If you 
get the BNF syntax a little off, it just stops autocompleting. 

This was definitely a bug as the <selectStatement> production rules were copied 
from the select statement syntax and not syntactically correct for creating 
materialized view.  E.g. you can't specify 'distinct' or 'as' aliases with a 
materialized view.

Also, I found that unit tests are missing for six other CQLSH commands, 
including 'create index' as reported in CASSANDRA-16640.

> It is not possible to autocomplete "WITH" when creating materialized view
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-17879
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17879
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: Stefan Miklosovic
>            Assignee: Brad Schoening
>            Priority: Normal
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I noticed that when I type this:
> {code}
> CREATE MATERIALIZED VIEW ks.mv2 AS SELECT * FROM t WHERE k IS NOT NULL AND c1 
> IS NOT NULL AND c2 IS NOT NULL PRIMARY KEY (c1,k,c2) <TAB>
> {code}
> nothing happens after pressing tab, there should be options shown as for 
> table case.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to