Skip to content
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

Merged
merged 7 commits into from
Jul 17, 2020
Merged

Check/create edge index #2058

merged 7 commits into from
Jul 17, 2020

Conversation

Shylock-Hg
Copy link
Contributor

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?

@Shylock-Hg Shylock-Hg added type/enhancement Type: make the code neat or more efficient ready-for-testing PR: ready for the CI test labels Apr 4, 2020
@codecov-io
Copy link

Codecov Report

Merging #2058 into master will decrease coverage by 0.10%.
The diff coverage is 91.88%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/common/base/Configuration.h 100.00% <ø> (ø)
src/common/filter/Expressions.h 88.35% <ø> (+0.89%) ⬆️
src/common/utils/NebulaKeyUtils.cpp 100.00% <ø> (ø)
src/common/utils/NebulaKeyUtils.h 90.41% <ø> (ø)
src/common/utils/test/NebulaKeyUtilsTest.cpp 97.10% <ø> (ø)
src/graph/DescribeSpaceExecutor.h 0.00% <ø> (ø)
src/graph/Executor.cpp 74.76% <ø> (-0.91%) ⬇️
src/graph/Executor.h 94.73% <ø> (-5.27%) ⬇️
src/graph/FetchEdgesExecutor.h 0.00% <ø> (ø)
src/graph/FetchExecutor.cpp 88.88% <ø> (+0.59%) ⬆️
... and 214 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c78a823...4c3747b. Read the comment docs.

dangleptr
dangleptr previously approved these changes Jul 14, 2020
Copy link
Contributor

@dangleptr dangleptr left a 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.

@dangleptr
Copy link
Contributor

Please rebase it. Thanks.
BTW. Why so many changes unrelated in your pr.....

@Shylock-Hg
Copy link
Contributor Author

Please rebase it. Thanks.
BTW. Why so many changes unrelated in your pr.....

It's auto format.

@jude-zhu jude-zhu requested a review from dangleptr July 15, 2020 01:40
@@ -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())) {
Copy link
Contributor

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.

Copy link
Contributor Author

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))) { \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

Copy link
Contributor Author

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format.

@dangleptr dangleptr merged commit 9d1acc5 into vesoft-inc:master Jul 17, 2020
xuguruogu pushed a commit to xuguruogu/nebula that referenced this pull request Aug 5, 2020
* Check the create edge index request early.

* Add some comments.

* Using std::move.
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* Check the create edge index request early.

* Add some comments.

* Using std::move.
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants