cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tylerho...@apache.org
Subject cassandra git commit: Ninja: fix test for js return type under rhino engine
Date Tue, 18 Nov 2014 20:32:22 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 2c3f9ba04 -> 2877bc235


Ninja: fix test for js return type under rhino engine


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2877bc23
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2877bc23
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2877bc23

Branch: refs/heads/trunk
Commit: 2877bc235a957dfd60ac934c572e07f4092d9fa9
Parents: 2c3f9ba
Author: Robert Stupp <snazy@snazy.de>
Authored: Tue Nov 18 14:31:47 2014 -0600
Committer: Tyler Hobbs <tyler@datastax.com>
Committed: Tue Nov 18 14:31:47 2014 -0600

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/cql3/UFTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2877bc23/test/unit/org/apache/cassandra/cql3/UFTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/cql3/UFTest.java b/test/unit/org/apache/cassandra/cql3/UFTest.java
index ce850b7..4975ca9 100644
--- a/test/unit/org/apache/cassandra/cql3/UFTest.java
+++ b/test/unit/org/apache/cassandra/cql3/UFTest.java
@@ -698,9 +698,9 @@ public class UFTest extends CQLTester
 
         // declared rtype = decimal , return type = int
         execute("CREATE OR REPLACE FUNCTION "+KEYSPACE+".js(val double) RETURNS decimal LANGUAGE
javascript\n" +
-                "AS '100;';");
+                "AS 'parseInt(\"100\");';");
         assertRows(execute("SELECT key, val, js(val) FROM %s"),
-                   row(1, 1d, BigDecimal.valueOf(100L)));
+                   row(1, 1d, BigDecimal.valueOf(100d)));
         execute("DROP FUNCTION "+KEYSPACE+".js(double)");
 
         // declared rtype = decimal , return type = double


Mime
View raw message