cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lyuben Todorov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-7395) Support for pure user-defined functions (UDF)
Date Tue, 12 Aug 2014 16:13:15 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094226#comment-14094226
] 

Lyuben Todorov edited comment on CASSANDRA-7395 at 8/12/14 4:13 PM:
--------------------------------------------------------------------

The {{UFTest}} is failing for me on trunk (f774b2a931949c2fc1485733fdc88ab674db870e). /cc
[~snazy]

Exception:
{noformat}
    [junit] Testcase: ddlCreateFunctionNonStaticMethod(org.apache.cassandra.cql3.UFTest):
FAILED
    [junit] Expected exception: org.apache.cassandra.exceptions.InvalidRequestException
    [junit] junit.framework.AssertionFailedError: Expected exception: org.apache.cassandra.exceptions.InvalidRequestException
    [junit] 
    [junit] 
    [junit] Testcase: nonNamespaceUserFunctions(org.apache.cassandra.cql3.UFTest):	Caused
an ERROR
    [junit] Class org.apache.cassandra.cql3.udf.StdLibMath does not exist
    [junit] org.apache.cassandra.exceptions.InvalidRequestException: Class org.apache.cassandra.cql3.udf.StdLibMath
does not exist
    [junit] 	at org.apache.cassandra.cql3.udf.UDFunction.resolveClassMethod(UDFunction.java:104)
    [junit] 	at org.apache.cassandra.cql3.udf.UDFunction.<init>(UDFunction.java:60)
    [junit] 	at org.apache.cassandra.cql3.udf.UDFFunctionOverloads.addAndInit(UDFFunctionOverloads.java:38)
    [junit] 	at org.apache.cassandra.cql3.udf.UDFRegistry.addFunction(UDFRegistry.java:139)
    [junit] 	at org.apache.cassandra.cql3.udf.UDFRegistry.tryCreateFunction(UDFRegistry.java:127)
    [junit] 	at org.apache.cassandra.cql3.statements.CreateFunctionStatement.doExecute(CreateFunctionStatement.java:151)
    [junit] 	at org.apache.cassandra.cql3.statements.CreateFunctionStatement.executeInternal(CreateFunctionStatement.java:114)
    [junit] 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:306)
    [junit] 	at org.apache.cassandra.cql3.CQLTester.execute(CQLTester.java:204)
    [junit] 	at org.apache.cassandra.cql3.UFTest.nonNamespaceUserFunctions(UFTest.java:174)
    [junit] 
    [junit] 
    [junit] Test org.apache.cassandra.cql3.UFTest FAILED
{noformat}

So it might have something to do with the udf.StdLibMath removal. /cc [~thobbs]


was (Author: lyubent):
The {{UFTest}} is failing for me on trunk (f774b2a931949c2fc1485733fdc88ab674db870e). /cc
[~snazy]

> Support for pure user-defined functions (UDF)
> ---------------------------------------------
>
>                 Key: CASSANDRA-7395
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7395
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: API, Core
>            Reporter: Jonathan Ellis
>            Assignee: Robert Stupp
>              Labels: cql
>             Fix For: 3.0
>
>         Attachments: 7395-dtest.txt, 7395.txt, udf-create-syntax.png, udf-drop-syntax.png
>
>
> We have some tickets for various aspects of UDF (CASSANDRA-4914, CASSANDRA-5970, CASSANDRA-4998)
but they all suffer from various degrees of ocean-boiling.
> Let's start with something simple: allowing pure user-defined functions in the SELECT
clause of a CQL query.  That's it.
> By "pure" I mean, must depend only on the input parameters.  No side effects.  No exposure
to C* internals.  Column values in, result out.  http://en.wikipedia.org/wiki/Pure_function



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

Mime
View raw message