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

Robert Stupp commented on CASSANDRA-10747:
------------------------------------------

At the moment we do not allow functions from another keyspace - neither a user 
keyspace nor the (or a) system keyspace.

We had kind of "flappy opinions" whether to allow functions from other 
keyspaces in UDAs and also whether to allow the system keyspace or not. ([noted 
in this 
comment|https://issues.apache.org/jira/browse/CASSANDRA-9542?focusedCommentId=14620414&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14620414]
 of CASSANDRA-9542, also CASSANDRA-9771 and CASSANDRA-10040).

> CQL.textile syntax incorrectly includes optional keyspace for aggregate SFUNC 
> and FINALFUNC
> -------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-10747
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10747
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Documentation and Website
>            Reporter: dan jatnieks
>            Assignee: Robert Stupp
>            Priority: Trivial
>             Fix For: 2.2.x
>
>         Attachments: 10747.txt
>
>
> [CQL.textile|https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile]
>  incorrectly includes an optional keyspace for the {{SFUNC}} and 
> {{FINALFUNC}} parts of a {{CREATE AGGREGATE}} statement.
> The grammar for 2.2 and 3.0 does not allow a keyspace to be specified here.
> From the CQL.textile:
> {noformat}
> <create-aggregate-stmt> ::= CREATE ( OR REPLACE )? 
>                             AGGREGATE ( IF NOT EXISTS )?
>                             ( <keyspace> '.' )? <aggregate-name>
>                             '(' <arg-type> ( ',' <arg-type> )* ')'
>                             SFUNC ( <keyspace> '.' )? <state-functionname>
>                             STYPE <state-type>
>                             ( FINALFUNC ( <keyspace> '.' )? 
> <final-functionname> )?
>                             ( INITCOND <init-cond> )?
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to