Skip to content

Commit

Permalink
Merge pull request #1579 from kuzudb/issue-1575
Browse files Browse the repository at this point in the history
Fix issue-1575
  • Loading branch information
andyfengHKU committed May 28, 2023
2 parents d672a00 + a0a5656 commit 65263f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/processor/operator/hash_join/hash_join_probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ void HashJoinProbe::setVectorsToNull() {
uint64_t HashJoinProbe::getLeftJoinResult() {
if (getInnerJoinResult() == 0) {
setVectorsToNull();
probeState->probedTuples[0] = nullptr;
}
return 1;
}
Expand Down
8 changes: 4 additions & 4 deletions test/test_files/lsqb/lsqb_queries.test
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
---- 1
55607896

#-NAME q7
#-QUERY MATCH (:Tag)<-[:Post_hasTag_Tag|:Comment_hasTag_Tag]-(message:Post:Comment)-[:Post_hasCreator_Person|:Comment_hasCreator_Person]->(creator:Person) OPTIONAL MATCH (message)<-[:Person_likes_Comment|:Person_likes_Post]-(liker:Person) OPTIONAL MATCH (message)<-[:Comment_replyOf_Comment|:Comment_replyOf_Post]-(comment:Comment) RETURN count(*) AS count;
#---- 1
#1628132
-NAME q7
-QUERY MATCH (:Tag)<-[:Post_hasTag_Tag|:Comment_hasTag_Tag]-(message:Post:Comment)-[:Post_hasCreator_Person|:Comment_hasCreator_Person]->(creator:Person) OPTIONAL MATCH (message)<-[:Person_likes_Comment|:Person_likes_Post]-(liker:Person) OPTIONAL MATCH (message)<-[:Comment_replyOf_Comment|:Comment_replyOf_Post]-(comment:Comment) RETURN count(*) AS count;
---- 1
1628132

-NAME q8
-QUERY MATCH (tag1:Tag)<-[:Post_hasTag_Tag|:Comment_hasTag_Tag]-(message:Post:Comment)<-[:Comment_replyOf_Post|:Comment_replyOf_Comment]-(comment:Comment)-[:Comment_hasTag_Tag]->(tag2:Tag) WHERE NOT EXISTS {MATCH (comment)-[:Comment_hasTag_Tag]->(tag1)} AND id(tag1) <> id(tag2) RETURN count(*) AS count;
Expand Down

0 comments on commit 65263f5

Please sign in to comment.