ftsrg / ingraph

Incremental view maintenance for openCypher graph queries.
http://docs.inf.mit.bme.hu/ingraph/
Eclipse Public License 1.0
47 stars 10 forks source link

FPlan misses required properties used in Create #379

Closed marci543 closed 5 years ago

marci543 commented 5 years ago

The GetVertices node in the FPlan of the following query should include n.id attribute from the Create node. https://github.com/FTSRG/ingraph/blob/0ea0e4d70c60f0b1be6a5c15a26b5edf52b004dd/cypher-to-sql/src/main/resources/local-features/Local.feature#L63-L64

GPlan:
------
'Production
+- 'Create [v(_e1, {Label}, (id,(p(id, v(n, {}, false, (n#0)), (n.id#0)) + 1)), true, (_e1#0))]
   +- 'AllDifferent
      +- 'GetVertices v(n, {}, false, (n#0))

-----------------------------------------------------------------------------
NPlan:
------
'Production
+- 'Create v(_e1, {Label}, (id,(p(id, v(n, {}, false, (n#0)), (n.id#0)) + 1)), true, (_e1#0))
   +- 'AllDifferent
      +- 'GetVertices v(n, {}, false, (n#0))

-----------------------------------------------------------------------------
FPlan:
------
Production
+- Create v(_e1, {Label}, (id,(p(id, v(n, {}, false, (n#0)), (n.id#0)) + 1)), true, (_e1#0))
   +- AllDifferent
      +- GetVertices v(n, {}, false, (n#0))

Previous issue about Create: #368