case classnormalizeWithClauses(mkException: (String, InputPosition) ⇒ CypherException) extends Rewriter with Product with Serializable
This rewriter normalizes the scoping structure of a query, ensuring it is able to
be correctly processed for semantic checking. It makes sure that all return items
in a WITH clauses are aliased.
It also replaces expressions and subexpressions in ORDER BY and WHERE
to use aliases introduced by the WITH, where possible.
This rewriter depends on normalizeReturnClauses having first been run.
Example:
MATCH n
WITH n.prop AS prop ORDER BY n.prop DESC
RETURN prop
This rewrite will change the query to:
MATCH n
WITH n.prop AS prop ORDER BY prop DESC
RETURN prop
Linear Supertypes
Serializable, Serializable, Product, Equals, (AnyRef) ⇒ AnyRef, AnyRef, Any
This rewriter normalizes the scoping structure of a query, ensuring it is able to be correctly processed for semantic checking. It makes sure that all return items in a WITH clauses are aliased.
It also replaces expressions and subexpressions in ORDER BY and WHERE to use aliases introduced by the WITH, where possible.
This rewriter depends on normalizeReturnClauses having first been run.
Example:
MATCH n WITH n.prop AS prop ORDER BY n.prop DESC RETURN prop
This rewrite will change the query to:
MATCH n WITH n.prop AS prop ORDER BY prop DESC RETURN prop