Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When enabling OAK-1617 (still to be committed) there's a regression in the oak-solr-core unit tests
- org.apache.jackrabbit.core.query.JoinTest#testJoinWithOR3
- org.apache.jackrabbit.core.query.JoinTest#testJoinWithOR4
- org.apache.jackrabbit.core.query.JoinTest#testJoinWithOR5
The WIP of the feature can be found in https://github.com/davidegiannella/jackrabbit-oak/tree/OAK-1617 and a full patch will be attached shortly for review in OAK-1617 itself.
The feature is currently disabled, in order to enable it for unit testing an approach like this can be taken https://github.com/davidegiannella/jackrabbit-oak/blob/177df1a8073b1237857267e23d12a433e3d890a4/oak-core/src/test/java/org/apache/jackrabbit/oak/query/SQL2OptimiseQueryTest.java#L142 or setting the system property -Doak.query.sql2optimisation.