You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rob Vesse (JIRA)" <ji...@apache.org> on 2013/07/29 21:03:49 UTC
[jira] [Closed] (JENA-495) Regression in evaluation of aggregates
with trailing VALUES
[ https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Vesse closed JENA-495.
--------------------------
> Regression in evaluation of aggregates with trailing VALUES
> -----------------------------------------------------------
>
> Key: JENA-495
> URL: https://issues.apache.org/jira/browse/JENA-495
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ, Jena
> Affects Versions: Jena 2.10.1
> Reporter: Mark Buquor
> Assignee: Rob Vesse
>
> {noformat}
> The following query returns {{x, 1},{x, 2}} with 2.7.1 and 2.10.1 as expected:
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> SELECT *
> WHERE { }
> VALUES ?x { 1 2 }
> The following query returns {{sum,3}} with 2.7.1. With 2.10.1, it returns no results.
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> SELECT (SUM(?x) AS ?sum)
> WHERE { }
> VALUES ?x { 1 2 }
> The following query returns {{count,2}} with 2.7.1. With 2.10.1, it returns {{count,0},{count,0}}.
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> SELECT (COUNT(?x) AS ?count)
> WHERE { }
> VALUES ?x { 1 2 }
> The queries work as expected with 2.10.1 if the VALUES is moved into the WHERE. e.g.
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> SELECT (COUNT(?x) AS ?count)
> WHERE { VALUES ?x { 1 2 } }
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira