[ https://issues.apache.org/jira/browse/JENA-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15374965#comment-15374965 ]
ASF subversion and git services commented on JENA-1203: ------------------------------------------------------- Commit 9355372b2c3cc74a6f950ca022290584cf3179d3 in jena's branch refs/heads/master from [~andy.seaborne] [ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=9355372 ] JENA-1203: Another update syntax test > projecting non grouped variable in subquery is incorrectly allowed > ------------------------------------------------------------------ > > Key: JENA-1203 > URL: https://issues.apache.org/jira/browse/JENA-1203 > Project: Apache Jena > Issue Type: Bug > Environment: sparql.org's validator > Reporter: Joshua Taylor > Assignee: Andy Seaborne > Priority: Minor > > Described in this Stack Overflow answer, > http://stackoverflow.com/a/38104783/1281433 : > {code} > SELECT ?sub ?pred ?obj (count(?obj) as ?count) > WHERE { ?sub ?pred ?obj . > } GROUP BY ?sub > {code} > is illegal, because there are non-grouped variables in the projection (?pred, > ?obj). However, when this query appears as a subquery, no syntax error is > reported, as in: > {code} > DELETE { ?sub ?pred ?obj . } > WHERE { > {SELECT ?sub ?pred ?obj (count(?obj) as ?count) > WHERE { ?sub ?pred ?obj . > } GROUP BY ?sub > } FILTER(?count < 14) > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)