Aklakan commented on code in PR #2884:
URL: https://github.com/apache/jena/pull/2884#discussion_r1874841874


##########
jena-arq/src/test/java/org/apache/jena/sparql/algebra/TestOpAsQuery.java:
##########
@@ -482,6 +482,21 @@ public void testMinus02() {
                                                            "SELECT * { GRAPH 
?g { { ?x ?y ?z FILTER(EXISTS { ?s ?p ?o }) } ?x ?y ?z } }",
                                                               syntaxARQ); }
 
+    @Test

Review Comment:
   Your query does not fail for me.
   
   The fix is in 
   ```
       public Expr transform(ExprFunctionOp funcOp, ExprList args, Op opArg)
       {
           Element el2 = ElementTransformer.transform(funcOp.getElement(), 
transform, this);
       }
   ```
   So the issue is related to (NOT) EXISTS *within* in a subquery.
   Also note that, the transform is an `ElementTransform` - so `SELECT * { ?s a 
?c }` is treated different than `?s a ?c` - although the Op would be the same.
   
   I reduced the query to this:
   ```
   SELECT ?s {
     SELECT ?s {
       ?s a ?t
       FILTER EXISTS { SELECT * { ?s a ?c } }
     }
   }
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to