Uploaded image for project: 'ONgDB'
  1. ONgDB
  2. ONGDB-79

SemanticErrorAcceptanceTest failure | should fail if using a hint on a node and not using the property

    XMLWordPrintable

Details

    Description

      org.scalatest.exceptions.TestFailedException: Did not get the expected error, expected: 'Cannot use index hint in this context. Index hints are only supported for the following predicates in WHERE (either directly or as part of a top-level AND or OR): equality comparison, inequality (range) comparison, STARTS WITH, IN condition or checking property existence. The comparison cannot be performed between two property values. Note that the label and property comparison must be specified on a non-optional node (line 1, column 18 (offset: 17))' actual: 'Cannot use index hint in this context. Index hints are only supported for the following predicates in WHERE (either directly or as part of a top-level AND or OR): equality comparison, inequality (range) comparison, STARTS WITH, point distance, IN condition or checking property existence. The comparison cannot be performed between two property values. Note that the label and property comparison must be specified on a non-optional node (line 1, column 18 (offset: 17))'
       at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.newAssertionFailedException(CypherFunSuite.scala:28) at org.scalatest.Assertions$class.fail(Assertions.scala:1328) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.fail(CypherFunSuite.scala:28) at org.neo4j.internal.cypher.acceptance.SemanticErrorAcceptanceTest.org$neo4j$internal$cypher$acceptance$SemanticErrorAcceptanceTest$$executeAndEnsureError(SemanticErrorAcceptanceTest.scala:527) at org.neo4j.internal.cypher.acceptance.SemanticErrorAcceptanceTest.org$neo4j$internal$cypher$acceptance$SemanticErrorAcceptanceTest$$executeAndEnsureError(SemanticErrorAcceptanceTest.scala:508) at org.neo4j.internal.cypher.acceptance.SemanticErrorAcceptanceTest$$anonfun$32.apply$mcV$sp(SemanticErrorAcceptanceTest.scala:308) at org.neo4j.internal.cypher.acceptance.SemanticErrorAcceptanceTest$$anonfun$32.apply(SemanticErrorAcceptanceTest.scala:308) at org.neo4j.internal.cypher.acceptance.SemanticErrorAcceptanceTest$$anonfun$32.apply(SemanticErrorAcceptanceTest.scala:308) at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) at org.scalatest.Transformer.apply(Transformer.scala:22) at org.scalatest.Transformer.apply(Transformer.scala:20) at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166) at org.scalatest.Suite$class.withFixture(Suite.scala:1122) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.withFixture(CypherFunSuite.scala:28) at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175) at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(CypherFunSuite.scala:28) at org.scalatest.BeforeAndAfterEach$class.runTest(BeforeAndAfterEach.scala:255) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.runTest(CypherFunSuite.scala:28) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413) at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401) at scala.collection.immutable.List.foreach(List.scala:392) at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401) at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396) at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483) at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.runTests(CypherFunSuite.scala:28) at org.scalatest.Suite$class.run(Suite.scala:1424) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.org$scalatest$FunSuiteLike$$super$run(CypherFunSuite.scala:28) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212) at org.scalatest.SuperEngine.runImpl(Engine.scala:545) at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212) at org.neo4j.cypher.internal.util.v3_4.test_helpers.CypherFunSuite.run(CypherFunSuite.scala:28) at org.scalatest.junit.JUnitRunner.run(JUnitRunner.scala:99) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at org.junit.runner.JUnitCore.run(JUnitCore.java:115) at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:39) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:79) at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:70) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)

      Attachments

        Issue Links

          Activity

            People

              bradnussbaum Brad Nussbaum
              bradnussbaum Brad Nussbaum
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: