You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Piotr Tajduś (JIRA)" <ji...@apache.org> on 2019/07/15 15:18:00 UTC
[jira] [Created] (OAK-8487) When query with OR is divided into
union of queries, orderings are lost
Piotr Tajduś created OAK-8487:
---------------------------------
Summary: When query with OR is divided into union of queries, orderings are lost
Key: OAK-8487
URL: https://issues.apache.org/jira/browse/OAK-8487
Project: Jackrabbit Oak
Issue Type: Bug
Components: core
Affects Versions: 1.14.0
Reporter: Piotr Tajduś
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:
{code:java}
result = newAlternativeUnionQuery(left, right);
result.setOrderings(orderings);
}
}
return result;{code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)