Chandran Anjur Narasimhan created CASSANDRA-9495:
----------------------------------------------------

             Summary: 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: Tools
         Environment: OSX 10.10.2
            Reporter: Chandran Anjur Narasimhan
             Fix For: 3.x


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.justechoagaind[double]' failed: 
java.lang.IllegalArgumentException: No protocol version matching integer 
version 4"




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

Reply via email to