Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition Query has none-flatten condition #280

Closed
javeme opened this issue Dec 13, 2018 · 0 comments · Fixed by #281
Closed

Condition Query has none-flatten condition #280

javeme opened this issue Dec 13, 2018 · 0 comments · Fixed by #281
Labels
bug Something isn't working
Milestone

Comments

@javeme
Copy link
Contributor

javeme commented Dec 13, 2018

Actual behavior 实际表现

java.lang.IllegalStateException: Condition Query has none-flatten condition '183 > 45 OR 183 == 35 OR 183 < 29 AND 183 < 20 AND 183 >= 11 OR 183 > 10'
at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
at com.baidu.hugegraph.util.E.checkState(E.java:68)
at com.baidu.hugegraph.backend.query.ConditionQuery.checkFlattened(ConditionQuery.java:396)
at com.baidu.hugegraph.backend.query.ConditionQuery.condition(ConditionQuery.java:140)
at com.baidu.hugegraph.backend.tx.GraphIndexTransaction.collectMatchedIndexes(GraphIndexTransaction.java:529)
at com.baidu.hugegraph.backend.tx.GraphIndexTransaction.processRangeIndexLeft(GraphIndexTransaction.java:103)
at com.baidu.hugegraph.backend.tx.GraphIndexTransaction.removeIndexLeft(GraphIndexTransaction.java:93)
at com.baidu.hugegraph.backend.tx.GraphTransaction.filterResultFromIndexQuery(GraphTransaction.java:1181)
at com.baidu.hugegraph.backend.tx.GraphTransaction.lambda$queryVertices$1(GraphTransaction.java:485)
at com.baidu.hugegraph.iterator.FilterIterator.fetch(FilterIterator.java:45)
at com.baidu.hugegraph.iterator.WrappedIterator.hasNext(WrappedIterator.java:41)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphStep.processNextStart(GraphStep.java:131)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.FlatMapStep.processNextStart(FlatMapStep.java:48)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38)
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.fill(Traversal.java:177)
at org.apache.tinkerpop.gremlin.process.traversal.Traversal.toList(Traversal.java:115)
at com.baidu.hugegraph.core.VertexCoreTest.testQueryWithMultiLayerConditions(VertexCoreTest.java:1567)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

@javeme javeme added the bug Something isn't working label Dec 13, 2018
zhoney added a commit that referenced this issue Dec 17, 2018
fixed: #280

Change-Id: I90fe4af3491b57fe7632dcc533df703b725dbd7e
Linary pushed a commit that referenced this issue Dec 17, 2018
fixed: #280

Change-Id: I90fe4af3491b57fe7632dcc533df703b725dbd7e
@javeme javeme added this to the 0.9 milestone Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant