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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2012/10/04 12:13:07 UTC
[jira] [Resolved] (OAK-347) QueryEngine 'like' interpretation error
[ https://issues.apache.org/jira/browse/OAK-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Parvulescu resolved OAK-347.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.6
Assignee: Alex Parvulescu
from what I see via the jcr tests, this is good now
> QueryEngine 'like' interpretation error
> ---------------------------------------
>
> Key: OAK-347
> URL: https://issues.apache.org/jira/browse/OAK-347
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Fix For: 0.6
>
>
> This is not a parsing error, it affects the Query string -> Query transformation mechanism.
> Currently there is no 'like' support in the FilterImpl [0] and the conditions get turned into invalid string range conditions [1].
> It would appear that
> {{ WHERE jcr:path LIKE 'testroot/%'}}
> gets transformed into the following query filter condition:
> {{ jcr:path has to be between /testroot/ and /testroot0 inclusive }}
> which has no way of working
> (except for the internal LikePattern implementation which apparently knows all the tricks).
> The failing test case is FulltextQueryTest#testFulltextSimpleSQL1
> [0] http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/index/FilterImpl.java?view=markup#l220
> [1] http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/ast/ComparisonImpl.java?view=markup#l131
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira