[
https://issues.apache.org/jira/browse/JENA-495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Buquor updated JENA-495:
-----------------------------
Description:
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 } }
was:
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 } }
> 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
>
> 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 } }
--
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