Skip to content

Commit

Permalink
Merge pull request #7181 from pontusmelke/3.0-bump-2.3
Browse files Browse the repository at this point in the history
Update cypher dependency to 2.3.4
  • Loading branch information
davidegrohmann committed May 23, 2016
2 parents 9a828d2 + 4e21814 commit 7a97edd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 886 deletions.
2 changes: 1 addition & 1 deletion community/cypher/cypher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-compiler-2.3</artifactId>
<version>2.3.3</version>
<version>2.3.4</version>
<exclusions>
<exclusion>
<groupId>org.neo4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import org.neo4j.cypher.internal.frontend.v2_3.spi.MapToPublicExceptions
import org.neo4j.cypher.internal.frontend.v2_3.{CypherException => InternalCypherException, InputPosition => InternalInputPosition}
import org.neo4j.cypher.internal.javacompat.{PlanDescription, ProfilerStatistics}
import org.neo4j.cypher.internal.spi.TransactionalContextWrapper
import org.neo4j.cypher.internal.spi.v2_3.{GeneratedQueryStructure, TransactionBoundGraphStatistics, TransactionBoundPlanContext, TransactionBoundQueryContext}
import org.neo4j.cypher.internal.spi.v2_3.{TransactionBoundGraphStatistics, TransactionBoundPlanContext, TransactionBoundQueryContext}
import org.neo4j.cypher.internal.{CypherExecutionMode, ExtendedExecutionResult, ExtendedPlanDescription, LastCommittedTxIdProvider, ParsedQuery, PreParsedQuery, QueryStatistics}
import org.neo4j.cypher.javacompat.internal.GraphDatabaseCypherService
import org.neo4j.graphdb.Result.ResultVisitor
Expand Down Expand Up @@ -441,15 +441,15 @@ case class CompatibilityFor2_3Cost(graph: GraphDatabaseQueryService,
case _ => throw new IllegalArgumentException(s"unknown cost based planner: ${planner.name}")
}

val runtimeName = runtime match {
val runtimeName: Option[RuntimeName] = runtime match {
case CypherRuntime.default => None
case CypherRuntime.interpreted => Some(InterpretedRuntimeName)
case CypherRuntime.compiled => Some(CompiledRuntimeName)
case CypherRuntime.compiled => throw new IllegalArgumentException("Compiled runtime is not supported in Cypher 2.3")
}

val nodeManager = graph.getDependencyResolver.resolveDependency(classOf[NodeManager])
CypherCompilerFactory.costBasedCompiler(
graph.asInstanceOf[GraphDatabaseCypherService].getGraphDatabaseService, new EntityAccessorWrapper2_3(nodeManager), config, clock, GeneratedQueryStructure, new WrappedMonitors2_3( kernelMonitors ),
graph.asInstanceOf[GraphDatabaseCypherService].getGraphDatabaseService, new EntityAccessorWrapper2_3(nodeManager), config, clock, new WrappedMonitors2_3( kernelMonitors ),
new StringInfoLogger2_3( log ), rewriterSequencer, plannerName, runtimeName)
}

Expand Down

0 comments on commit 7a97edd

Please sign in to comment.