cayleygraph / cayley

An open-source graph database
https://cayley.io
Apache License 2.0
14.83k stars 1.25k forks source link

Fix NextPath for optimized queries in SQL #848

Closed dennwc closed 4 years ago

dennwc commented 4 years ago

When optimizing queries for SQL, we missed the fact that NodesFrom and derived queries make use of NextPath which is not implemented on SQL iterators.

This PR fixes it by emulating the same behavior for both Next and Contains.

Fixes #724


This change is Reviewable