Skip to content

Commit

Permalink
update results for SimpleMatchQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
BingqingLyu committed May 13, 2024
1 parent c5138f8 commit 62e2757
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static QueryContext get_simple_match_query_14_test() {
"Record<{aId: 0, c: path[], bId: 0}>",
"Record<{aId: 0, c: path[], bId: 0}>",
"Record<{aId: 0, c: path[], bId: 0}>",
"Record<{aId: 0, c: path[], bId: 3}>");
"Record<{aId: 0, c: path[[(216172782113783811)<-[483468:CONTAINEROF]-(288230376151711744)]], bId: 3}>");
return new QueryContext(query, expected);
}

Expand All @@ -202,11 +202,11 @@ public static QueryContext get_simple_match_query_15_test() {

List<String> expected =
Arrays.asList(
"Record<{aId: 94, c: path[], bId: 987}>",
"Record<{aId: 94, c: path[], bId: 2199023256154}>",
"Record<{aId: 94, c: path[], bId: 2199023256776}>",
"Record<{aId: 94, c: path[], bId: 6597069767432}>",
"Record<{aId: 94, c: path[], bId: 8796093022369}>");
"Record<{aId: 94, c: path[[(72057594037928030)-[771484:KNOWS]->(72057594037928923)], bId: 987}>",
"Record<{aId: 94, c: path[(72057594037928030)-[771485:KNOWS]->(72059793061184090)], bId: 2199023256154}>",
"Record<{aId: 94, c: path[(72057594037928030)-[771486:KNOWS]->(72059793061184712)], bId: 2199023256776}>",
"Record<{aId: 94, c: path[(72057594037928030)-[771487:KNOWS]->(72064191107695368)], bId: 6597069767432}>",
"Record<{aId: 94, c: path[(72057594037928030)-[771488:KNOWS]->(72066390130950305)]], bId: 8796093022369}>");
return new QueryContext(query, expected);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package com.alibaba.graphscope.cypher.integration.ldbc;

import static org.junit.Assume.assumeTrue;

import com.alibaba.graphscope.cypher.integration.suite.QueryContext;
import com.alibaba.graphscope.cypher.integration.suite.simple.SimpleMatchQueries;

Expand All @@ -39,6 +41,7 @@ public static void beforeClass() {

@Test
public void run_simple_match_1_test() {
assumeTrue("hiactor".equals(System.getenv("ENGINE_TYPE")));
QueryContext testQuery = SimpleMatchQueries.get_simple_match_query_1_test();
Result result = session.run(testQuery.getQuery());
Assert.assertEquals(testQuery.getExpectedResult().toString(), result.list().toString());
Expand Down Expand Up @@ -130,13 +133,17 @@ public void run_simple_match_13_test() {

@Test
public void run_simple_match_14_test() {
// TODO: fix this in hiactor.

Check warning on line 136 in interactive_engine/compiler/src/test/java/com/alibaba/graphscope/cypher/integration/ldbc/SimpleMatchTest.java

View check run for this annotation

codefactor.io / CodeFactor

interactive_engine/compiler/src/test/java/com/alibaba/graphscope/cypher/integration/ldbc/SimpleMatchTest.java#L136

Resolve unexpected comment. (com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck)
assumeTrue("pegasus".equals(System.getenv("ENGINE_TYPE")));
QueryContext testQuery = SimpleMatchQueries.get_simple_match_query_14_test();
Result result = session.run(testQuery.getQuery());
Assert.assertEquals(testQuery.getExpectedResult().toString(), result.list().toString());
}

@Test
public void run_simple_match_15_test() {
// TODO: fix this in hiactor.

Check warning on line 145 in interactive_engine/compiler/src/test/java/com/alibaba/graphscope/cypher/integration/ldbc/SimpleMatchTest.java

View check run for this annotation

codefactor.io / CodeFactor

interactive_engine/compiler/src/test/java/com/alibaba/graphscope/cypher/integration/ldbc/SimpleMatchTest.java#L145

Resolve unexpected comment. (com.puppycrawl.tools.checkstyle.checks.TodoCommentCheck)
assumeTrue("pegasus".equals(System.getenv("ENGINE_TYPE")));
QueryContext testQuery = SimpleMatchQueries.get_simple_match_query_15_test();
Result result = session.run(testQuery.getQuery());
Assert.assertEquals(testQuery.getExpectedResult().toString(), result.list().toString());
Expand Down

0 comments on commit 62e2757

Please sign in to comment.