Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD4BD116E6 for ; Thu, 21 Aug 2014 15:39:11 +0000 (UTC) Received: (qmail 25167 invoked by uid 500); 21 Aug 2014 15:39:11 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 25128 invoked by uid 500); 21 Aug 2014 15:39:11 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 25116 invoked by uid 99); 21 Aug 2014 15:39:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 15:39:11 +0000 Date: Thu, 21 Aug 2014 15:39:11 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-7811) Add USING to CREATE FUNCTION syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)