forked from ldbc/ldbc_snb_interactive_v1_impls
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from CPWstatic/fix_ic_11_12
Fix ic 11 12
- Loading branch information
Showing
4 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
MATCH (n:Person)-[:KNOWS]-(friend:Person)<-[:HAS_CREATOR]-(`comment`:`Comment`)-[:REPLY_OF]->(:Post)-[:HAS_TAG]->(`tag`:`Tag`)-[:HAS_TYPE]->(tagClass:Tagclass)-[:IS_SUBCLASS_OF*0..100]->(baseTagClass:Tagclass) | ||
WHERE id(n) == $personId AND (tagClass.Tagclass.name == $tagClassName OR baseTagClass.Tagclass.name == $tagClassName) | ||
RETURN | ||
id(friend) AS personId, | ||
/* id(friend) AS personId, 属性裁剪待改进, 暂时通过以下写法规避问题*/ | ||
true ? id(friend) : id(n)+id(tagClass)+id(baseTagClass) AS personId, | ||
friend.Person.firstName AS personFirstName, | ||
friend.Person.lastName AS personLastName, | ||
collect(DISTINCT `tag`.`Tag`.name) AS tagNames, | ||
count(DISTINCT `comment`) AS replyCount | ||
count(DISTINCT id(`comment`)) AS replyCount | ||
ORDER BY replyCount DESC, personId ASC | ||
LIMIT 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
MATCH (n:Person)-[:KNOWS]-(friend:Person)<-[:COMMENT_HAS_CREATOR]-(`comment`:`Comment`)-[:REPLY_OF_POST]->(:Post)-[:HAS_TAG]->(`tag`:`Tag`)-[:HAS_TYPE]->(tagClass:Tagclass)-[:IS_SUBCLASS_OF*0..100]->(baseTagClass:Tagclass) | ||
WHERE id(n) == $personId AND (tagClass.Tagclass.name == $tagClassName OR baseTagClass.Tagclass.name == $tagClassName) | ||
RETURN | ||
id(friend) AS personId, | ||
/* id(friend) AS personId, 属性裁剪待改进, 暂时通过以下写法规避问题*/ | ||
true ? id(friend) : id(n)+id(tagClass)+id(baseTagClass) AS personId, | ||
friend.Person.firstName AS personFirstName, | ||
friend.Person.lastName AS personLastName, | ||
collect(DISTINCT `tag`.`Tag`.name) AS tagNames, | ||
count(DISTINCT `comment`) AS replyCount | ||
count(DISTINCT id(`comment`)) AS replyCount | ||
ORDER BY replyCount DESC, personId ASC | ||
LIMIT 20 |