You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ss...@apache.org on 2014/10/09 16:18:37 UTC
git commit: class cast exception for Sum
Repository: marmotta
Updated Branches:
refs/heads/develop 57b0dfb55 -> 6ee8853d3
class cast exception for Sum
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/6ee8853d
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/6ee8853d
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/6ee8853d
Branch: refs/heads/develop
Commit: 6ee8853d36043efcb83d5f39cd5a925d0ff0b6e6
Parents: 57b0dfb
Author: Sebastian Schaffert <ss...@apache.org>
Authored: Thu Oct 9 16:19:00 2014 +0200
Committer: Sebastian Schaffert <ss...@apache.org>
Committed: Thu Oct 9 16:19:00 2014 +0200
----------------------------------------------------------------------
.../java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/6ee8853d/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
index bf55800..11b3f72 100644
--- a/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
+++ b/libraries/kiwi/kiwi-sparql/src/main/java/org/apache/marmotta/kiwi/sparql/builder/SQLBuilder.java
@@ -919,7 +919,7 @@ public class SQLBuilder {
} else if(expr instanceof Max) {
return "MAX(" + evaluateExpression(((Max) expr).getArg(), OPTypes.DOUBLE) + ")";
} else if(expr instanceof Sum) {
- return "SUM(" + evaluateExpression(((Max) expr).getArg(), OPTypes.DOUBLE) + ")";
+ return "SUM(" + evaluateExpression(((Sum) expr).getArg(), OPTypes.DOUBLE) + ")";
} else if(expr instanceof FunctionCall) {
FunctionCall fc = (FunctionCall)expr;