jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3371) Wrong evaluation of NOT clause
Date Tue, 22 Sep 2015 09:03:04 GMT

    [ https://issues.apache.org/jira/browse/OAK-3371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14902260#comment-14902260
] 

Chetan Mehrotra commented on OAK-3371:
--------------------------------------

[~edivad] For me testcase is failing at 

{code}
        assertQuery(
            "SELECT * FROM [nt:unstructured] WHERE ISDESCENDANTNODE('/test') AND CONTAINS(foo,
'bar OR cat')",
            of("/test/d"));
{code}

With 
{noformat}
java.lang.AssertionError: Result set size is different 
Expected :1
Actual   :3
 <Click to see difference>
	at org.junit.Assert.fail(Assert.java:93)
	at org.junit.Assert.failNotEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:128)
	at org.junit.Assert.assertEquals(Assert.java:472)
	at org.apache.jackrabbit.oak.query.AbstractQueryTest.assertQuery(AbstractQueryTest.java:314)
	at org.apache.jackrabbit.oak.query.AbstractQueryTest.assertQuery(AbstractQueryTest.java:305)
	at org.apache.jackrabbit.oak.query.AbstractQueryTest.assertQuery(AbstractQueryTest.java:283)
	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexQueryTest.oak3371(LuceneIndexQueryTest.java:549)
{noformat}

I was expecting the last assertion to fail. So before I dig further wanted to check if thats
the current state of patch or I missed something?


> Wrong evaluation of NOT clause
> ------------------------------
>
>                 Key: OAK-3371
>                 URL: https://issues.apache.org/jira/browse/OAK-3371
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.2.4, 1.3.5
>            Reporter: Davide Giannella
>            Assignee: Davide Giannella
>             Fix For: 1.3.7
>
>         Attachments: OAK-3371-2.patch, OAK-3371-3-oak-core.patch, OAK-3371-4-notworking.patch,
OAK-3371-test.diff, OAK-3371.patch
>
>
> When executing a query like 
> {noformat}
> SELECT * FROM [nt:unstructured] WHERE ISDESCENDANTNODE([/test]) AND NOT CONTAINS(foo,
'bar')
> {noformat}
> and the {{nodeType}} index plays the not clause is not applied properly. Nodes **with**
the property are returned as well.
> [test|^OAK-3371-test.diff] showing the bug.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message