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/22 11:53:11 UTC
[jira] [Resolved] (CASSANDRA-7811) Add USING to CREATE FUNCTION
syntax
[ https://issues.apache.org/jira/browse/CASSANDRA-7811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sylvain Lebresne resolved CASSANDRA-7811.
-----------------------------------------
Resolution: Fixed
Assignee: Sylvain Lebresne
Alright, that was trivial enough that I took the liberty to ninja-commit this, see commit [aad152d|https://github.com/apache/cassandra/commit/aad152d81c3a9fcd25222c9d9cf3e10265607906] for reference.
> 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
> Assignee: 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)