Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Commit

Permalink
cypher2relalg: fix code comment bug as variable chaining between subq…
Browse files Browse the repository at this point in the history
…ueries are already implemented. Ref #16
  • Loading branch information
jmarton committed Apr 10, 2017
1 parent e6c7165 commit eb2aadf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ class RelalgBuilder {
* for each subQuery, but we retain the the label factories as well as
* top-level container not to break the containment hierarchy and separate variable namespaces.
*/
// FIXME: chain "return" variables forward to the next builder
variableBuilderChain = variableBuilderChain.cloneBuilderWithNewVariableFactories
val builder = new RelalgBuilder(topLevelContainer, variableBuilderChain)
ops.add(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class VariableBuilder {
/**
* Creates a new VariableBuilder instance that has new variable factory instances
* but retains label factories and the topLevelContainer.
*
* This also chains forward expression variables, i.e. those from a WITH or RETURN clause
*/
def cloneBuilderWithNewVariableFactories() {
new VariableBuilder(topLevelContainer, vertexLabelFactory, edgeLabelFactory, expressionVariableFactoryExtended.elements.values, logger)
Expand Down

0 comments on commit eb2aadf

Please sign in to comment.