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 bug in quering with joint labels #456

Merged
merged 5 commits into from
Apr 17, 2019
Merged

Fix bug in quering with joint labels #456

merged 5 commits into from
Apr 17, 2019

Conversation

Linary
Copy link
Contributor

@Linary Linary commented Apr 15, 2019

Change-Id: I41d63884fed05c59d03daffa0d7b7b0851a869e1

@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #456 into master will increase coverage by 0.04%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #456      +/-   ##
============================================
+ Coverage     68.96%   69.01%   +0.04%     
- Complexity     3273     3281       +8     
============================================
  Files           208      208              
  Lines         16146    16159      +13     
  Branches       2321     2325       +4     
============================================
+ Hits          11135    11152      +17     
+ Misses         3768     3762       -6     
- Partials       1243     1245       +2
Impacted Files Coverage Δ Complexity Δ
...hugegraph/backend/query/ConditionQueryFlatten.java 68.39% <100%> (+1%) 64 <8> (+2) ⬆️
.../baidu/hugegraph/backend/query/ConditionQuery.java 82.15% <83.33%> (+0.07%) 87 <4> (+4) ⬆️
...du/hugegraph/backend/tx/GraphIndexTransaction.java 79.52% <0%> (+0.15%) 146% <0%> (+1%) ⬆️
...ain/java/com/baidu/hugegraph/task/TaskManager.java 65.21% <0%> (+4.34%) 11% <0%> (+1%) ⬆️

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 802ffb1...fe48ef4. Read the comment docs.

public boolean hasDuplicateKeys(Set<HugeKeys> keys) {
Map<HugeKeys, Integer> keyCounts = new HashMap<>();
for (Condition condition : this.conditions()) {
if (!condition.isRelation()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

All conditions should be relations. Check them.

Linary added 4 commits April 17, 2019 11:21
Change-Id: I41d63884fed05c59d03daffa0d7b7b0851a869e1
Change-Id: Id47034ec856815e3835d325cc1f4dd0a02177b0f
Change-Id: Ia2a700a5f7adad2af62a7d77def3f23c6b87beed
Change-Id: I03392f3af3d6cb819d22fb7f86971834877db52f
@Linary Linary force-pushed the flatten-joint-labels branch from 77829be to 16b4ea3 Compare April 17, 2019 03:23
Change-Id: I21c8b767784fe68487b334ba4d9cb4ddcc53a306
@Linary Linary force-pushed the flatten-joint-labels branch from b4ff14e to fe48ef4 Compare April 17, 2019 11:02
@zhoney zhoney merged commit 51a8893 into master Apr 17, 2019
@zhoney zhoney deleted the flatten-joint-labels branch April 17, 2019 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants