Skip to content

Commit

Permalink
Added comments, added back IS2 and IS6
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-mu committed May 30, 2023
1 parent e4a4932 commit 074c082
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions test/test_files/ldbc/ldbc-interactive/interactive-short.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,33 @@
---- 1
Mahinda|Perera|19891203|119.235.7.103|Firefox|1353|male|20100214153210447

# IS2 should be changed to use Kleene Star relationship once that is implemented.
# The 'Case When' statement should be supported as coalesce().
# This query is currently commented out, but will work as soon as multilabelled recursive rels are merged to master.
# -NAME IS2
# -QUERY MATCH (:Person {id: 21990232555803})<-[:Post_hasCreator_Person|:Comment_hasCreator_Person]-(message)
# WITH
# message,
# message.id AS messageId,
# message.creationDate AS messageCreationDate
# ORDER BY messageCreationDate DESC, messageId ASC
# LIMIT 10
# MATCH (message)-[:Comment_replyOf_Post|:Comment_replyOf_Comment*1..2]->(post:Post),
# (post)-[:Post_hasCreator_Person]->(person)
# RETURN
# messageId,
# CASE WHEN message.imageFile is NULL THEN message.content ELSE message.imageFile END AS messageContent,
# messageCreationDate,
# post.id AS postId,
# person.id AS personId,
# person.firstName AS personFirstName,
# person.lastName AS personLastName
# ORDER BY messageCreationDate DESC, messageId ASC;
#---- 3
#1030792343617|About H•A•M, d Kanye West, released as the first single from their collaborati|20120823142307823|1030792343610|21990232556463|Victor|Antonescu
#1030792343876|thx|20120818110412997|1030792343869|21990232555803|Carlos|Lopez
#1030792343986|fine|20120810030544084|1030792343978|21990232556837|Bing|Li

-NAME IS3
-QUERY MATCH (n:Person {id: 1129})-[r:Person_knows_Person]-(friend) RETURN friend.id AS personId, friend.firstName AS firstName, friend.lastName AS lastName, r.creationDate AS friendshipCreationDate ORDER BY friendshipCreationDate DESC, personId ASC;
---- 7
Expand All @@ -22,6 +49,7 @@ Mahinda|Perera|19891203|119.235.7.103|Firefox|1353|male|20100214153210447
10995116278468|Anders|Andersson|20110102223928664
2199023256437|Rudolf|Engel|20100413164422450

# The 'Case When' statement in query IS4 should be supported as coalesce()
-NAME IS4
-QUERY MATCH (m:Post:Comment {id: 481036337190}) RETURN m.creationDate as messageCreationDate, CASE WHEN m.content is NULL THEN m.imageFile ELSE m.content END AS messageContent;
---- 1
Expand All @@ -32,6 +60,19 @@ Mahinda|Perera|19891203|119.235.7.103|Firefox|1353|male|20100214153210447
---- 1
2199023256077|Ibrahim Bare|Ousmane

# IS6 should be changed to use Kleene Star relationship once that is implemented
# This query is currently commented out, but will work as soon as multilabelled recursive rels are merged to master.
# -NAME IS6
# -QUERY MATCH (m:Comment {id: 962072675825 })-[:Comment_replyOf_Post|:Comment_replyOf_Comment*1..2]->(p:Post)<-[:Forum_containerOf_Post]-(f:Forum)-[:Forum_hasModerator_Person]->(mod:Person)
# RETURN
# f.id AS forumId,
# f.title AS forumTitle,
# mod.id AS moderatorId,
# mod.firstName AS moderatorFirstName,
# mod.lastName AS moderatorLastName;
# ---- 1
# 687194767491|Wall of Faisal Malik|21990232556585|Faisal|Malik

-NAME IS7
-QUERY MATCH (m:Post:Comment {id: 962072971887})<-[:Comment_replyOf_Comment|:Comment_replyOf_Post]-(c:Comment)-[:Comment_hasCreator_Person]->(p:Person) OPTIONAL MATCH (m)-[:Comment_hasCreator_Person|:Post_hasCreator_Person]->(a:Person)-[r:Person_knows_Person]-(p) RETURN c.id AS commentId, c.content AS commentContent, c.creationDate AS commentCreationDate, p.id AS replyAuthorId, p.firstName AS replyAuthorFirstName, p.lastName AS replyAuthorLastName, CASE WHEN ID(r) IS NULL THEN False ELSE True END AS replyAuthorKnowsOriginalMessageAuthor;
---- 9
Expand Down

0 comments on commit 074c082

Please sign in to comment.