cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7811) Add USING to CREATE FUNCTION syntax
Date Thu, 21 Aug 2014 15:39:11 GMT
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)

Mime
View raw message