[
https://issues.apache.org/jira/browse/JENA-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619079#comment-13619079
]
Andy Seaborne commented on JENA-429:
------------------------------------
The query does not round trip through OpAsQuery.
SELECT ?yearmonth ( count(?document) as ?total )
WHERE
{
?document a :Document;
:documentDateOfCreation ?date ;
:documentType "exam results" .
BIND( mylib:DateFormat( xsd:string(?date), "yyyy-MM" ) as ?yearmonth )
} group by ?yearmonth
The BIND is moved to the SELECT cause but that moves it the other side of the
GROUP BY.
> OpAsQuery generating invalid query
> ----------------------------------
>
> Key: JENA-429
> URL: https://issues.apache.org/jira/browse/JENA-429
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.10.0
> Reporter: Andy Seaborne
> Attachments: Jena429_TestCase.java
>
>
> From:
> http://mail-archives.apache.org/mod_mbox/jena-users/201303.mbox/%3CCAFRj_AdcJsJ55xYvqZT7XRiojhNVLuhT8-k8g-0cy5Zk-6T03Q%40mail.gmail.com%3E
--
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