mirror of https://github.com/apache/cassandra
Ninja: fix test for js return type under rhino engine
This commit is contained in:
parent
2c3f9ba048
commit
2877bc235a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue