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(interactive): fix bugs when try to get labels or properties from an None entry #4341

Merged
merged 6 commits into from
Dec 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add ci test
BingqingLyu committed Dec 3, 2024

Verified

This commit was signed with the committer’s verified signature.
maleck13 Craig Brookes
commit 8740d0a8123a388e27ce98156bec9c00607b9d77
Original file line number Diff line number Diff line change
@@ -219,4 +219,15 @@ public static QueryContext get_simple_match_query_17_test() {
List<String> expected = Arrays.asList("Record<{$f0: 851}>");
return new QueryContext(query, expected);
}

public static QueryContext get_simple_match_query_18_test() {
String query =
"MATCH (country:PLACE {name:"
+ " \"India\"})<-[:ISPARTOF]-(:PLACE)<-[:ISLOCATEDIN]-(zombie:PERSON)\n"
+ "OPTIONAL MATCH (zombie)<-[:HASCREATOR]-(message)\n"
+ "WHERE message.creationDate < 20100630000000000\n"
+ " Return count(country);";
List<String> expected = Arrays.asList("Record<{$f0: 25}>");
return new QueryContext(query, expected);
}
}
Original file line number Diff line number Diff line change
@@ -162,6 +162,13 @@ public void run_simple_match_17_test() {
Assert.assertEquals(testQuery.getExpectedResult().toString(), result.list().toString());
}

@Test
public void run_simple_match_18_test() {
QueryContext testQuery = SimpleMatchQueries.get_simple_match_query_18_test();
Result result = session.run(testQuery.getQuery());
Assert.assertEquals(testQuery.getExpectedResult().toString(), result.list().toString());
}

@AfterClass
public static void afterClass() {
if (session != null) {