Fix segfault when using ALL() for rel comparison#609
Merged
Conversation
Contributor
|
8d7ae06 to
556dec8
Compare
Contributor
Author
|
Yes, sorry, I thought I had rebased on the correct branch. Part of the fix was on my previous PR, so this one could not pass the test. Now it should be ok. |
Contributor
|
Something like: https://gist.github.com/adsharma/9c189d8bec7df072cd3cae3ba30acd6d has the same effect but less repeated code. |
Contributor
Author
|
Actually there is no repetition, it's github being confused by the rebasing. This PR adds two lines. Let me rebase again on main |
Contributor
|
Yes, the duplicate code already went into main #608, but could be optimized via the change above, since the fall through code passes tests even after eliminating the check inside the loop. |
556dec8 to
07e7e64
Compare
…stead of DASSERT From: predictable-labs/ryugraph#2
Co-authored-by: Arun Sharma <arun@sharma-home.net>
07e7e64 to
67d74d7
Compare
Contributor
Author
|
Ahh, I see what you mean. Just check if it's a pattern outside so we don't repeat what comes after the loop. Done! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a followup to #608 , completing the porting of the fixes in predictable-labs/ryugraph#2.
Instead of the custom data in the original PR I used the tinysnb dataset.
I also added another change from that PR, defensively avoiding an assert in debug builds in
NodeOrRelExpression::addPropertyExpression