-
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
Support filter in scan. #3329
Support filter in scan. #3329
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3329 +/- ##
==========================================
- Coverage 85.31% 85.30% -0.02%
==========================================
Files 1289 1289
Lines 120073 120197 +124
==========================================
+ Hits 102442 102535 +93
- Misses 17631 17662 +31
Continue to review full report at Codecov.
|
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.
LGTM
@@ -64,6 +64,13 @@ nebula::cpp2::ErrorCode ScanEdgeProcessor::checkAndBuildContexts(const cpp2::Sca | |||
std::vector<cpp2::EdgeProp> returnProps = {*req.return_columns_ref()}; | |||
ret = handleEdgeProps(returnProps); | |||
buildEdgeColName(returnProps); | |||
ret = buildFilter(req, [](const cpp2::ScanEdgeRequest& r) -> const std::string* { |
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.
How about just override the buildFilter
? Passing another function here is a little weird.
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.
The override code is almost same, so I don't do it as this.
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.
Em... Actually the lambda is almost same as well. Not so important.
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.
LGTM
What type of PR is this?
What does this PR do?
Support push-down filter of scan interface.
Which issue(s)/PR(s) this PR relates to?
Sub job of #3320
Special notes for your reviewer, ex. impact of this fix, etc:
Additional context:
Checklist:
Release notes:
Please confirm whether to reflect in release notes and how to describe: