ftsrg / ingraph

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

Unresolved attribute inside the property map of a vertex in Create #368

Closed marci543 closed 6 years ago

marci543 commented 6 years ago

The following query has an unresolved attribute new_id inside the Create node. https://github.com/FTSRG/ingraph/blob/0ea0e4d70c60f0b1be6a5c15a26b5edf52b004dd/cypher-to-sql/src/main/resources/local-features/Local.feature#L85-L87

GPlan:

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


NPlan:

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


FPlan:

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


'new_id (of class org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute)