Skip to content

Commit

Permalink
Fix handling of filters in KVIN and AAS query optimizers.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Mar 5, 2024
1 parent 886e2c7 commit a00536f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ public void process(TupleExpr expr) throws RDF4JException {
@Override
public void meet(Filter node) throws RDF4JException {
TupleExpr arg = node.getArg();
// TODO check if this condition is really required
if (arg instanceof StatementPattern) {
StatementPattern stmt = (StatementPattern) arg;
Parameters params = scanner.getParameters(stmt.getObjectVar());
if (params != null) {
node.setArg(new AasFetch(stmt, scanner.getParameters(stmt)));
}
} else {
node.visitChildren(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ public void process(TupleExpr expr) throws RDF4JException {
@Override
public void meet(Filter node) throws RDF4JException {
TupleExpr arg = node.getArg();
// TODO check if this condition is really required
if (arg instanceof StatementPattern) {
StatementPattern stmt = (StatementPattern) arg;
Parameters params = scanner.getParameters(stmt.getObjectVar());
if (params != null) {
node.setArg(new KvinFetch(stmt, scanner.getParameters(stmt)));
}
} else {
node.visitChildren(this);
}
}

Expand Down

0 comments on commit a00536f

Please sign in to comment.