cassandra-commits mailing list archives

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


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

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

    [junit] Testcase: ddlCreateFunctionNonStaticMethod(org.apache.cassandra.cql3.UFTest):
    [junit] Expected exception: org.apache.cassandra.exceptions.InvalidRequestException
    [junit] junit.framework.AssertionFailedError: Expected exception: org.apache.cassandra.exceptions.InvalidRequestException
    [junit] Testcase: nonNamespaceUserFunctions(org.apache.cassandra.cql3.UFTest):	Caused
    [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(
    [junit] 	at org.apache.cassandra.cql3.udf.UDFunction.<init>(
    [junit] 	at org.apache.cassandra.cql3.udf.UDFFunctionOverloads.addAndInit(
    [junit] 	at org.apache.cassandra.cql3.udf.UDFRegistry.addFunction(
    [junit] 	at org.apache.cassandra.cql3.udf.UDFRegistry.tryCreateFunction(
    [junit] 	at org.apache.cassandra.cql3.statements.CreateFunctionStatement.doExecute(
    [junit] 	at org.apache.cassandra.cql3.statements.CreateFunctionStatement.executeInternal(
    [junit] 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(
    [junit] 	at org.apache.cassandra.cql3.CQLTester.execute(
    [junit] 	at org.apache.cassandra.cql3.UFTest.nonNamespaceUserFunctions(
    [junit] Test org.apache.cassandra.cql3.UFTest FAILED

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

> Support for pure user-defined functions (UDF)
> ---------------------------------------------
>                 Key: CASSANDRA-7395
>                 URL:
>             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.

This message was sent by Atlassian JIRA

View raw message