-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Avoid full scan of match when there is an Relational In predicate #4748
Conversation
8974b76
to
40fcab6
Compare
40fcab6
to
a7922b0
Compare
Codecov ReportBase: 84.67% // Head: 84.70% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4748 +/- ##
==========================================
+ Coverage 84.67% 84.70% +0.02%
==========================================
Files 1358 1358
Lines 136094 136200 +106
==========================================
+ Hits 115238 115363 +125
+ Misses 20856 20837 -19
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
e5e5b4f
to
962842b
Compare
src/graph/util/ExpressionUtils.cpp
Outdated
return false; | ||
} | ||
auto rhs = static_cast<const RelationalExpression *>(e)->right(); | ||
return rhs->kind() == Expression::Kind::kList || rhs->kind() == Expression::Kind::kSet; |
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 should limit size of List to avoid stack overflow.
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.
Where is the stack overflow?
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.
@Shylock-Hg Construct flatten LogicalExpression instead.
962842b
to
6c5800f
Compare
fix small fix add test case small change add test cases small fix fmt
90e53f3
to
ad746f5
Compare
) * Avoid match full scan when has in predicate fix small fix add test case small change add test cases small fix fmt * small delete Co-authored-by: Sophie <[email protected]>
* logging error if any error in step (#4759) Co-authored-by: Sophie <[email protected]> * fix storage job (#4762) Co-authored-by: Sophie <[email protected]> * fix issue 4765 (#4768) * Avoid full scan of match when there is an Relational In predicate (#4748) * Avoid match full scan when has in predicate fix small fix add test case small change add test cases small fix fmt * small delete Co-authored-by: Sophie <[email protected]> Co-authored-by: Harris.Chu <[email protected]> Co-authored-by: Alex Xing <[email protected]> Co-authored-by: jie.wang <[email protected]> Co-authored-by: kyle.cao <[email protected]>
checked on 3.3-rc |
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
#4708
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: