Skip to content

Commit

Permalink
Merge pull request #295 from joka921/f.smallFixPatternTrick
Browse files Browse the repository at this point in the history
Small fix for the QueryPlanner.cpp
  • Loading branch information
niklas88 committed Dec 9, 2019
2 parents e576320 + 8a02829 commit cf3aca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/QueryPlanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ bool QueryPlanner::checkUsePatternTrick(
}

bool returns_counts = pq->_aliases.size() == 1;
bool usePatternTrick = true;

// These will only be set if the query returns the count of predicates
// The varialbe the COUNT alias counts
Expand Down Expand Up @@ -380,6 +379,7 @@ bool QueryPlanner::checkUsePatternTrick(
// look for a HAS_RELATION_PREDICATE triple which satisfies all constraints
for (size_t i = 0; i < pq->_rootGraphPattern->_whereClauseTriples.size();
i++) {
bool usePatternTrick = true;
const SparqlTriple& t = pq->_rootGraphPattern->_whereClauseTriples[i];
// Check that the triples predicates is the HAS_PREDICATE_PREDICATE.
// Also check that the triples object or subject matches the aliases input
Expand Down

0 comments on commit cf3aca2

Please sign in to comment.