cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CASSANDRA-9495) User Defined Function failure - No protocol version matching integer version 4
Date Thu, 28 May 2015 07:19:17 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-9495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Stupp reopened CASSANDRA-9495:
-------------------------------------

> User Defined Function failure - No protocol version matching integer version 4
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-9495
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9495
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: OSX 10.10.2
>            Reporter: Chandran Anjur Narasimhan
>             Fix For: 2.2.0 rc1
>
>
> A simple user defined function throws error while executing from the CQLSH.
> cqlsh> select release_version from system.local;
>  release_version
> -----------------
>   3.0.0-SNAPSHOT
> cqlsh:testjson> select * from user;
>  id                                   | price | total
> --------------------------------------+----------------------
>  16664872-01ae-11e5-a322-1697f925ec7c |    10 |  1011
>  a94e129c-01ad-11e5-a322-1697f925ec7b |   101 |  1011
>  16664872-01ae-11e5-a322-1697f925ec7b |  1011 |  1011
> (3 rows)
> cqlsh:testjson> CREATE FUNCTION justecho(value double ) RETURNS NULL ON NULL INPUT
RETURNS double  LANGUAGE java AS 'System.out.println(value); return value*value;';
> cqlsh:testjson> 
> cqlsh:testjson> select id, justecho(total) from user ;
> Traceback (most recent call last):
>   File "./cqlsh", line 1086, in perform_simple_statement
>     rows = future.result(self.session.default_timeout)
>   File "/Users/nchan/Programs/apache/cassandra-3.0/bin/../lib/cassandra-driver-internal-only-2.5.1.post0-074650b.zip/cassandra-driver-2.5.1.post0-074650b/cassandra/cluster.py",
line 3227, in result
>     raise self._final_exception
> FunctionFailure: code=1400 [User Defined Function failure] message="execution of 'testjson.justecho[double]'
failed: java.lang.IllegalArgumentException: No protocol version matching integer version 4"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message