We're updating the issue view to help you get more done. 

QueryJoinOptimizer joinvisitor.selectProjection fails to grab projection in Order/Slice

Description

The code in org.openrdf.query.algebra.evaluation.impl.QueryJoinOptimizer.selectProjections(), line 215, which searches for sub-selects, relies explicitly on finding a Projection (expr instanceof Projection) but this may not be the case because the Projection may be wrapped by Slice and/or Order. This means that such a Projection won't be repported by selectProjections() and we won't do reordering in our QueryJoinOptimizer in SailConnectionImpl.evaluate(), line 1099 (in the trunk).

Environment

None

Status

Assignee

JeenB

Reporter

JeenB

Labels

Components

Fix versions

Affects versions

2.7.2

Priority

Critical