-
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
Check/create edge index #2058
Check/create edge index #2058
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2058 +/- ##
==========================================
- Coverage 86.90% 86.79% -0.11%
==========================================
Files 636 641 +5
Lines 59819 61148 +1329
==========================================
+ Hits 51984 53075 +1091
- Misses 7835 8073 +238
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.
Thanks for taking care of it. LGTM.
Please rebase it. Thanks. |
It's auto format. |
@@ -31,14 +31,24 @@ void CreateEdgeIndexExecutor::execute() { | |||
auto *edgeName = sentence_->edgeName(); | |||
auto columns = sentence_->names(); | |||
auto spaceId = ectx()->rctx()->session()->space(); | |||
if (UNLIKELY(columns.empty())) { |
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 check about column's empty and column duplicate is in meta.
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.
That's my purpose.
return Status(k##ERROR, msg); \ | ||
} \ | ||
\ | ||
static Status ERROR(const char *fmt, ...) __attribute__((format(printf, 1, 2))) { \ |
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.
why
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.
Format.
kNotSupported = 103, | ||
kError = 101, | ||
kNoSuchFile = 102, | ||
kNotSupported = 103, |
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.
why
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.
Format.
* Check the create edge index request early. * Add some comments. * Using std::move.
* Check the create edge index request early. * Add some comments. * Using std::move.
…vesoft-inc#2058) This reverts commit aa62416. Co-authored-by: Sophie <[email protected]> Co-authored-by: Cheng Xuntao <[email protected]> Co-authored-by: Sophie <[email protected]>
What changes were proposed in this pull request?
Sub of #2057
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?