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

Fix graphd's crash due to lack of support of xor. #4952

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

xtcyclist
Copy link
Contributor

@xtcyclist xtcyclist commented Nov 29, 2022

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Close #4951

Description:

Lack of support for xor.

How do you solve it?

Added some methods for xor.

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • TCK
  • N/A

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

Copy link
Contributor

@yixinglu yixinglu left a comment

Choose a reason for hiding this comment

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

Need some TCK test cases.

@xtcyclist xtcyclist marked this pull request as ready for review November 29, 2022 09:01
@xtcyclist xtcyclist added the ready-for-testing PR: ready for the CI test label Nov 29, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 76.84% // Head: 76.86% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (7a90e0f) compared to base (aa62416).
Patch coverage: 79.80% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4952      +/-   ##
==========================================
+ Coverage   76.84%   76.86%   +0.02%     
==========================================
  Files        1101     1101              
  Lines       81180    81225      +45     
==========================================
+ Hits        62379    62435      +56     
+ Misses      18801    18790      -11     
Impacted Files Coverage Δ
src/graph/util/ExpressionUtils.h 100.00% <ø> (ø)
src/kvstore/NebulaStore.cpp 69.90% <0.00%> (+0.11%) ⬆️
src/kvstore/NebulaStore.h 78.57% <ø> (ø)
src/kvstore/RocksEngine.h 84.28% <ø> (+1.18%) ⬆️
src/kvstore/listener/Listener.cpp 82.97% <ø> (ø)
src/kvstore/listener/Listener.h 39.13% <ø> (ø)
src/kvstore/listener/elasticsearch/ESListener.cpp 0.00% <ø> (ø)
src/kvstore/listener/elasticsearch/ESListener.h 0.00% <ø> (ø)
src/clients/meta/MetaClient.cpp 76.00% <50.00%> (-0.32%) ⬇️
src/graph/util/ExpressionUtils.cpp 94.51% <89.47%> (+0.23%) ⬆️
... and 55 more

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

} else if (expr->kind() == Expression::Kind::kLogicalXor) {
pullXors(expr);
} else {
LOG(FATAL) << "Invalid logical expression kind: " << static_cast<uint8_t>(expr->kind());
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to use DCHECK.

Copy link
Contributor

@czpmango czpmango left a comment

Choose a reason for hiding this comment

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

LGTM

@Sophie-Xie Sophie-Xie merged commit 92ac71a into vesoft-inc:master Nov 30, 2022
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

graphd crashed executing query
5 participants