Skip to content

Commit 59ebafa

Browse files
committed
GH-4872 create tests and fix some parent issues
1 parent 158af44 commit 59ebafa

2 files changed

Lines changed: 384 additions & 4 deletions

File tree

core/queryalgebra/evaluation/src/main/java/org/eclipse/rdf4j/query/algebra/evaluation/optimizer/ConjunctiveConstraintSplitterOptimizer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void meet(Filter filter) {
5656
TupleExpr filterArg = filter.getArg();
5757

5858
for (int i = conjunctiveConstraints.size() - 1; i >= 1; i--) {
59-
Filter newFilter = new Filter(filterArg, conjunctiveConstraints.get(i));
59+
Filter newFilter = new Filter(filterArg, conjunctiveConstraints.get(i).clone());
6060
filterArg = newFilter;
6161
}
6262

@@ -77,11 +77,11 @@ public void meet(LeftJoin node) {
7777

7878
for (ValueExpr constraint : conjunctiveConstraints) {
7979
if (isWithinBindingScope(constraint, arg)) {
80-
arg = new Filter(arg, constraint);
80+
arg = new Filter(arg, constraint.clone());
8181
} else if (condition == null) {
8282
condition = constraint;
8383
} else {
84-
condition = new And(condition, constraint);
84+
condition = new And(condition, constraint.clone());
8585
}
8686
}
8787

0 commit comments

Comments
 (0)