-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Several testsuite tests flagging lots of assertions in algebra.Var.setParentNode(Var.java:112) #4169
Comments
I know @hmottestad has recently gone over quite a lot of the codebase to fix this (see GH-4189 and GH-4157). Are these problems still occurring or has this now been rectified? |
Test Results - com_msd_gin_halyard_strategy_in_halyard-strategy.txt Still occuring on 4.1.3 (see attached -- had to rename from .html to .txt to upload to comment here) |
@hmottestad any updates on these asserts? |
Could you create a pull request to reproduce these issues as I'm having a hard time reproducing them myself. |
just to sync, but were you able to wire up the tests mentioned here and still not seeing an issue? if so, maybe a halyard issue. |
This is what I did: #4211 Was it one of those tests? |
I reran the tests w/o halyard stuff and no more asserts. However, one of the test is failing and incorrect (tested against graphdb and docker rdf4j 4.2.0. graphdb returns correct result, 4.2.0 does not. It appears to also be broken in 4.1.0; i did not go back further). Test is sparql11-exists-06
|
Query plan:
|
It works if I change the query to:
So I think it's a scoping issue when using filters inside and EXISTS clause. |
I'm closing this issue since the original issue was about the assert in the Var class. I've create a new issue for the |
Current Behavior
SPARQLQueryTest, SPARQLUpdateTest, ComplexSPARQLQueryText, W3CApprovedSPARQL11QueryTest
~15 tests are failing as a result of some variant of this.
Some stacks:
java.lang.AssertionError
at org.eclipse.rdf4j.query.algebra.Var.setParentNode(Var.java:112)
at org.eclipse.rdf4j.query.algebra.BinaryValueOperator.setLeftArg(BinaryValueOperator.java:70)
at org.eclipse.rdf4j.query.algebra.BinaryValueOperator.(BinaryValueOperator.java:46)
at org.eclipse.rdf4j.query.algebra.SameTerm.(SameTerm.java:26)
at org.eclipse.rdf4j.query.algebra.evaluation.impl.CompareOptimizer$CompareVisitor.meet(CompareOptimizer.java:59)
at org.eclipse.rdf4j.query.algebra.Compare.visit(Compare.java:89)
at org.eclipse.rdf4j.query.algebra.Filter.visitChildren(Filter.java:77)
java.lang.AssertionError
at org.eclipse.rdf4j.query.algebra.Var.setParentNode(Var.java:112)
at org.eclipse.rdf4j.query.algebra.FunctionCall.addArg(FunctionCall.java:92)
at org.eclipse.rdf4j.query.algebra.FunctionCall.addArgs(FunctionCall.java:79)
at org.eclipse.rdf4j.query.algebra.FunctionCall.(FunctionCall.java:48)
at org.eclipse.rdf4j.query.algebra.evaluation.impl.RegexAsStringFunctionOptimizer$RegexAsStringFunctionVisitor.containsCandidate(RegexAsStringFunctionOptimizer.java:77)
at org.eclipse.rdf4j.query.algebra.evaluation.impl.RegexAsStringFunctionOptimizer$RegexAsStringFunctionVisitor.meet(RegexAsStringFunctionOptimizer.java:68)
at org.eclipse.rdf4j.query.algebra.Regex.visit(Regex.java:71)
at org.eclipse.rdf4j.query.algebra.BinaryValueOperator.visitChildren(BinaryValueOperator.java:96)
at org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor.meetNode(AbstractQueryModelVisitor.java:576)
at org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor.meetBinaryValueOperator(AbstractQueryModelVisitor.java:545)
at org.eclipse.rdf4j.query.algebra.helpers.AbstractQueryModelVisitor.meet(AbstractQueryModelVisitor.java:118)
at org.eclipse.rdf4j.query.algebra.And.visit(And.java:35)
java.lang.AssertionError
at org.eclipse.rdf4j.query.algebra.Var.setParentNode(Var.java:112)
at org.eclipse.rdf4j.query.algebra.StatementPattern.(StatementPattern.java:101)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:1486)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:237)
at org.eclipse.rdf4j.query.parser.sparql.ast.ASTPathElt.jjtAccept(ASTPathElt.java:32)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:1411)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:237)
at org.eclipse.rdf4j.query.parser.sparql.ast.ASTPathSequence.jjtAccept(ASTPathSequence.java:30)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:1358)
at org.eclipse.rdf4j.query.parser.sparql.TupleExprBuilder.visit(TupleExprBuilder.java:237)
at org.eclipse.rdf4j.query.parser.sparql.ast.ASTPathAlternative.jjtAccept(ASTPathAlternative.java:28
Expected Behavior
No assert errors
Steps To Reproduce
Run testsuite on files: SPARQLQueryTest, SPARQLUpdateTest, ComplexSPARQLQueryText, W3CApprovedSPARQL11QueryTest
Version
4.1.2-SNAPSHOT
Are you interested in contributing a solution yourself?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: