neo4j implementation updates
play

Neo4j implementation updates Bugfixes and decisions Mats Rydberg - PowerPoint PPT Presentation

Neo4j implementation updates Bugfixes and decisions Mats Rydberg mats@neotechnology.com opencypher.org | opencypher@googlegroups.com opencypher.org | opencypher@googlegroups.com Neo4j and Cypher Neo4j has the first ever Cypher


  1. Neo4j implementation updates Bugfixes and decisions Mats Rydberg mats@neotechnology.com opencypher.org | opencypher@googlegroups.com opencypher.org | opencypher@googlegroups.com

  2. Neo4j and Cypher ● Neo4j has the first ever Cypher implementation ● Neo4j viewed as reference implementation, ie the Truth ™ ● Neo4j implementation still contains bugs, and Cypher is still not fully specified ○ Changes will be introduced and semantical decisions made ➢ 'Bugs' / 'corner cases' ○ Sometimes our mental model is wrong, sometimes the implementation is wrong opencypher.org | opencypher@googlegroups.com

  3. Neo4j -- recent decisions ● LIMIT and updates ● UNWIND and non-lists ● Order of UNION fields opencypher.org | opencypher@googlegroups.com

  4. LIMIT and updates MATCH (s:Start) MATCH (s:Start) CREATE (n)-[:TO]->(:End) WITH * RETURN n.position LIMIT 10 LIMIT 10 CREATE (n)-[:TO]->(:End) RETURN n.position ● Each clause completes before next starts ● Subclauses CIP suggests LIMIT Never-ending query: allowed directly on reading MATCH () clauses CREATE () opencypher.org | opencypher@googlegroups.com

  5. UNWIND and non-lists UNWIND [null, 'string', []] AS i UNWIND i AS j RETURN j ● Any non-list value is treated as singleton list, including null ● Empty list halts execution j -------- null 'string' opencypher.org | opencypher@googlegroups.com

  6. Order of UNION fields MATCH (s:Square) MATCH (s:Square) RETURN s.x, s.y, s.area RETURN s.x, s.y, s.area UNION UNION MATCH (c:Circle) MATCH (c:Circle) RETURN s.area, s.x, s.y RETURN s.x, s.y, s.area ● Order of fields must be the same for all sub-parts of UNION ● Order of fields are relevant for return records ○ This may be up for wider debate opencypher.org | opencypher@googlegroups.com

  7. Questions? opencypher.org | opencypher@googlegroups.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend