-
Notifications
You must be signed in to change notification settings - Fork 85
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
finish range literal [*] [*2] [*..] [*2..] [*..2] #2027
Conversation
AEsir777
commented
Sep 12, 2023
•
edited
Loading
edited
- finish range literal [*], [*2], [2..], [..2], [..]
- fix all the test cases
ede0886
to
bb88cd6
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2027 +/- ##
==========================================
+ Coverage 90.04% 90.08% +0.04%
==========================================
Files 918 919 +1
Lines 33125 33257 +132
==========================================
+ Hits 29826 29961 +135
+ Misses 3299 3296 -3
☔ View full report in Codecov by Sentry. |
b7c08db
to
1f7012b
Compare
1f7012b
to
78894aa
Compare
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.
Don't forget to rebase and squash
@@ -0,0 +1,121 @@ | |||
-GROUP TinySnbReadTest |
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.
Move this test file to var_length_extend/
-- | ||
|
||
-CASE SingleUpperBound | ||
-STATEMENT MATCH(a:person {fName: "Alice"})-[e:knows*..2]->(b:person) RETURN e; |
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.
Maybe just do a COUNT(*) here. I feel the ground truth is a bit long. Though this is up to u.
Dan | ||
-STATEMENT MATCH(a:person {fName: "Greg"})-[e:knows*..1]->(b:person) RETURN b.fName; | ||
---- 0 | ||
# Different results from standard OpenCypher: 0 should be allowed |
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.
remove
78894aa
to
0728ee9
Compare
ab0c9e0
to
df15e71
Compare
if (!recursiveInfo->upperBound.empty()) { | ||
upperBound = TypeUtils::convertToUint32(recursiveInfo->upperBound.c_str()); | ||
} | ||
|
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.
Remove empty line.
You are now checking lowerBound <= limit then upperBound <= limit.
I guess you can just check lowerBound <= upperBound and then upperBound <= limit. This just comes to my mind that we didn't validate lowerBound <= upperBound.
df15e71
to
64c425e
Compare