Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10747

CQL.textile syntax incorrectly includes optional keyspace for aggregate SFUNC and FINALFUNC

    XMLWordPrintableJSON

Details

    • Low

    Description

      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:

      <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> )?
      

      Attachments

        1. 10747.txt
          0.8 kB
          Robert Stupp

        Activity

          People

            snazy Robert Stupp
            djatnieks dan jatnieks
            Robert Stupp
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: