Hi Michael,
You are right, the CALL statement isn’t yet supported in openCypher. The openCypher specification activities have recently slowed down in order to prioritize the work on the GQL standard but we expect these activities to resume shortly so that mature GQL features (such as CALL statement) can be incorporated into the openCypher specification (via CIPs).
However, looking at your query, it is possible to achieve the same purpose while avoiding the use of the CALL statement. For instance, you can simply use a linear composition of MERGE, MATCH, SET, … as follows:
UNWIND $batch as row
MERGE (e:Entity {asset_id: row.asset_id, version: row.version, id: row.entity_id})
WITH row where row.has_parent=True and row.parent<>''
MATCH (e:Entity {asset_id: row.asset_id, version: row.version, id: row.entity_id})
SET e.fract_index=row.fract_index
WITH row where row.has_parent=True and row.parent= ''
MATCH (e:Entity {asset_id: row.asset_id, version: row.version, id: row.entity_id})
REMOVE e.fract_index
…
I hope this was helpful.
Cheers,
Nathalie
--
You received this message because you are subscribed to the Google Groups "openCypher" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencypher+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencypher/cef5f0b3-53a7-423f-aeb4-51ecf703907en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencypher/CAMkFJ%2B6FbhvCrE7qfNVDcCwnAeh_EmJngK80wc_t0wB9zyDafQ%40mail.gmail.com.
Thanks for your responses!
To view this discussion on the web visit https://groups.google.com/d/msgid/opencypher/CAMkFJ%2B6FbhvCrE7qfNVDcCwnAeh_EmJngK80wc_t0wB9zyDafQ%40mail.gmail.com.
NOTICE: This e-mail and any attachments may contain confidential information. If you are the intended recipient, please consider this a privileged communication, not to be forwarded without explicit approval from the sender. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal. The originator reserves the right to monitor all e-mail communications through its networks for quality control purposes.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencypher/CAMkFJ%2B6_Pm_-cf8EGxwdygCLv0hq2LQJ7LqnTE2MuKzWkB82gA%40mail.gmail.com.