Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.14.0
-
None
-
None
Description
In org.apache.jackrabbit.oak.query.QueryImpl.buildAlternativeQuery() orderings are not passed into subqueries, nor into new UnionQueryImpl (it not only affects order, but in some cases cost of plans - in my case it caused index traversing).
I have fixed this in my copy of sources by setting orderings on result:
result = newAlternativeUnionQuery(left, right);
result.setOrderings(orderings);
}
}
return result;