[
https://issues.apache.org/jira/browse/JENA-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224761#comment-14224761
]
ASF subversion and git services commented on JENA-817:
------------------------------------------------------
Commit a539ff032d6bb10629dc88cfd9d27a87db53c2be in jena's branch
refs/heads/hadoop-rdf from [~andy.seaborne]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=a539ff0 ]
JENA-817 : Fix for sum(...) of an empty group.
> SUM(?a) {empty} is error but SUM( DISTINCT?a) {empty} is value zero.
> --------------------------------------------------------------------
>
> Key: JENA-817
> URL: https://issues.apache.org/jira/browse/JENA-817
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.12.1
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Fix For: Jena 2.12.2
>
>
> They can't both be right!
> The fix is to make sum(empty) zero. Looks like the code use to do that but
> was left is a debugging state.
> In SQL, sum(empty) is NULL.
> In SPARQL 1.1, sec 18.5.1.3:
> Sum(S) = "0"^^xsd:integer when card[S] = 0
> so it is zero.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)