-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restriction of {0,0} returns the same as {1,1} #9
Comments
I've started looking into this issue, but I don't know what the PGQ document uses for path semantics. If it is strict, then no edge traversals occur and the expected result would be the empty set. If it is relaxed semantics, then the result could be only the source node. I will ask next week at the TUC meeting. |
The following two queries get equal results, just the select * from graph_table (pg match (a is person)-[k is knows]->{0,1}(b is person)-[k2 is knows]->(c is person) columns (a.id as a_id, a.name as a_name, b.id as b_id, b.name as b_name, c.id as c_id)); select * from (select a.*, b.* from person a, knows k, person b where a.id = k.person1id and b.id = k.person2id UNION ALL select a.*, b.* from person a, person b where a.rowid = b.rowid) join knows k2 on id_1 = k2.person1id join person c on c.id = k2.person2id; Tested this with Oracle 23ai and got the same results |
What happens?
see title
To Reproduce
Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: