-
Notifications
You must be signed in to change notification settings - Fork 40
Fixed iteration tests #303
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
base: main
Are you sure you want to change the base?
Changes from all commits
860d914
4cd13e9
54e4c66
d6f2399
4059045
b5a294b
b61ec93
410955a
7483e48
4c1c08a
7b8ce09
a922567
79bf155
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -298,13 +298,13 @@ private function makeFromBoltPath(BoltPath $path): Path | |
| foreach ($rels as $rel) { | ||
| $relationships[] = $this->makeFromBoltUnboundRelationship($rel); | ||
| } | ||
| /** @var list<int> $ids */ | ||
| $ids = $path->ids; | ||
| /** @var list<int> $indices */ | ||
| $indices = $path->indices; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this backwards compatible? What happens in a Neo4j 4.4 setting?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It’s backwards compatible because our minimum dependency is stefanak-michal/bolt:^7.4, where Path has indices and ids is just a deprecated alias to the same array. So Neo4j 4.4 isn’t an issue here; the only risk would be someone running an older Bolt lib than our constraint. If you want extra safety, we can fall back to ids when indices isn’t present |
||
|
|
||
| return new Path( | ||
| new CypherList($nodes), | ||
| new CypherList($relationships), | ||
| new CypherList($ids), | ||
| new CypherList($indices), | ||
| ); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this because of peek? Can you confirm peek is @nothrow against other drivers too? Mention it in the comment here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes — updated the $deferredPullFailure docblock: it’s not peek-only (RECORD+FAILURE in one PULL); peek uses the same path via lazy current(); end-of-stream peek is non-throwing (null), matching official drivers.