Conversation
Codecov Report
@@ Coverage Diff @@
## master #2055 +/- ##
============================================
+ Coverage 64.98% 68.35% +3.37%
- Complexity 976 979 +3
============================================
Files 481 481
Lines 39749 39807 +58
Branches 5582 5592 +10
============================================
+ Hits 25829 27212 +1383
+ Misses 11374 9954 -1420
- Partials 2546 2641 +95
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
f530722 to
2753e68
Compare
|
test fine in |
hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/ConditionQueryFlatten.java
Outdated
Show resolved
Hide resolved
| return (HugeGraph) graph.get(); | ||
| } | ||
|
|
||
| public static void trySetGraph(Step<?, ?> step, HugeGraph graph) { |
There was a problem hiding this comment.
seems don't need to set graph anymore, please refer to apache/tinkerpop#1699
There was a problem hiding this comment.
ok, I have add TODO
// TODO: remove these EmptyGraph judgments when upgrading tinkerpop to a fixed version
| boolean supportIn) { | ||
| if (query.isFlattened() && !query.mayHasDupKeys(SPECIAL_KEYS)) { | ||
| Relations relations = new Relations(); | ||
| List<Condition> noRelations = new ArrayList<>(); |
There was a problem hiding this comment.
there are two type, the one is relation, and other, so maybe relation name is more suitable.
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/TraversalUtil.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/TraversalUtil.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/ConditionQueryFlatten.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/ConditionQueryFlatten.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
Outdated
Show resolved
Hide resolved
d9ede1e to
805ae2a
Compare
e72ad2f to
5206283
Compare
hugegraph-core/src/main/java/org/apache/hugegraph/backend/query/ConditionQueryFlatten.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/HugeGraphStep.java
Outdated
Show resolved
Hide resolved
| graphStep.queryInfo().aggregate(Aggregate.AggregateFunc.COUNT, null); | ||
| HugeCountStep<?> countStep = new HugeCountStep<>(traversal, graphStep); | ||
| for (Step<?, ?> origin : originSteps) { | ||
| TraversalHelper.copyLabels(origin, countStep, false); |
There was a problem hiding this comment.
is there a replaceStep method that contains a copyLabels call? otherwise add some comments for why?
hugegraph-core/src/main/java/org/apache/hugegraph/StandardHugeGraph.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/org/apache/hugegraph/traversal/optimize/TraversalUtil.java
Outdated
Show resolved
Hide resolved
| boolean supportsPersistence = this.backendStoreFeatures().supportsPersistence(); | ||
| this.features = new HugeFeatures(this, supportsPersistence); |
There was a problem hiding this comment.
seems the ci fails due to this.backendStoreFeatures() call, try to move to line 222?
There was a problem hiding this comment.
here are backendStoreFeatures() call tx.readwrite cause ConnectionException, but Open method catch the exception, throw RuntimeException, so here need change the unit test
|
|
||
| final HugeGraph[] g2 = new HugeGraph[1]; | ||
| Assert.assertThrows(ConnectionException.class, () -> { | ||
| Assert.assertThrows(RuntimeException.class, () -> { |
There was a problem hiding this comment.
can we keep the ConnectionException and update the throw-exception location?
fix #2058