Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9495

User Defined Function failure - No protocol version matching integer version 4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 2.2.0 rc1
    • None
    • None
    • OSX 10.10.2

    • Normal

    Description

      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"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reach.nchan Chandran Anjur Narasimhan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: