You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sylvain Lebresne (JIRA)" <ji...@apache.org> on 2014/08/21 17:39:11 UTC

[jira] [Created] (CASSANDRA-7811) Add USING to CREATE FUNCTION syntax

Sylvain Lebresne created CASSANDRA-7811:
-------------------------------------------

             Summary: Add USING to CREATE FUNCTION syntax
                 Key: CASSANDRA-7811
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7811
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Sylvain Lebresne
            Priority: Trivial
             Fix For: 3.0


The current syntax to create a function using a class is:
{noformat}
CREATE FUNCTION f() RETURNS int 'com.my.class#myMethod'
{noformat}
This is a minor detail but the absence of a keywork between the return type and the class/method string bugs me. I'm submitting that we change this to
{noformat}
CREATE FUNCTION f() RETURNS int USING 'com.my.class#myMethod'
{noformat}
which would also be more consistent with the {{CREATE TRIGGER}} syntax. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)