atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-3532) Test case failure in GremlinQueryComposerTest
Date Mon, 25 Nov 2019 17:52:00 GMT

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

Bolke de Bruin commented on ATLAS-3532:
---------------------------------------

This does not seem to be the right chance as there is no test for textContainsRegex anymore
now afaik. Does the query contain the special '_' so it warrants switching to textRegex which
is *slow*?

> Test case failure in GremlinQueryComposerTest
> ---------------------------------------------
>
>                 Key: ATLAS-3532
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3532
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Nikhil Bonte
>            Assignee: Nikhil Bonte
>            Priority: Major
>         Attachments: ATLAS-3532-Test-case-failure-in-GremlinQueryComposer.patch
>
>
> {code:java}
> Tests run: 39, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.464 sec <<<
FAILURE! - in org.apache.atlas.query.GremlinQueryComposerTestwhereClauseTextContains(org.apache.atlas.query.GremlinQueryComposerTest) 
Time elapsed: 0.697 sec  <<< FAILURE!java.lang.AssertionError: Table where owner
like "Tab*" expected [g.V().has('__typeName', 'Table').has('Table.owner', org.janusgraph.core.attribute.Text.textContainsRegex("Tab.*")).dedup().limit(25).toList()]
but found [g.V().has('__typeName', 'Table').has('Table.owner', org.janusgraph.core.attribute.Text.textRegex("Tab.*")).dedup().limit(25).toList()]
>      at org.testng.Assert.fail(Assert.java:94)
>      at org.testng.Assert.failNotEquals(Assert.java:496)
>      at org.testng.Assert.assertEquals(Assert.java:125)
>      at org.testng.Assert.assertEquals(Assert.java:178)
>      at org.apache.atlas.query.GremlinQueryComposerTest.verify(GremlinQueryComposerTest.java:362)
>      at org.apache.atlas.query.GremlinQueryComposerTest.verify(GremlinQueryComposerTest.java:371)
>      at org.apache.atlas.query.GremlinQueryComposerTest.whereClauseTextContains(GremlinQueryComposerTest.java:170)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message