From 1e87f888aeaf3063db2e6fa0e580a13bf767451b Mon Sep 17 00:00:00 2001 From: Teon Banek Date: Wed, 30 Aug 2017 16:15:39 +0200 Subject: [PATCH] Correctly transform `exists` to `is not null` check Reviewers: buda, mislav.bradac Reviewed By: mislav.bradac Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D731 --- tests/public_benchmark/ldbc/test_cases/queries/short_query_2.oc | 2 +- tests/public_benchmark/ldbc/test_cases/queries/short_query_4.oc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/public_benchmark/ldbc/test_cases/queries/short_query_2.oc b/tests/public_benchmark/ldbc/test_cases/queries/short_query_2.oc index a48e206c7..6389e77f6 100644 --- a/tests/public_benchmark/ldbc/test_cases/queries/short_query_2.oc +++ b/tests/public_benchmark/ldbc/test_cases/queries/short_query_2.oc @@ -3,7 +3,7 @@ MATCH (:Person {id:"933"})<-[:HAS_CREATOR]-(m)-[:REPLY_OF*0..]->(p:Post) MATCH (p)-[:HAS_CREATOR]->(c) RETURN m.id as messageId, - CASE m.content IS null + CASE m.content IS NOT null WHEN true THEN m.content ELSE m.imageFile END AS messageContent, diff --git a/tests/public_benchmark/ldbc/test_cases/queries/short_query_4.oc b/tests/public_benchmark/ldbc/test_cases/queries/short_query_4.oc index e04a7ae33..d2eeb5bfa 100644 --- a/tests/public_benchmark/ldbc/test_cases/queries/short_query_4.oc +++ b/tests/public_benchmark/ldbc/test_cases/queries/short_query_4.oc @@ -1,7 +1,7 @@ // Message Content MATCH (m:Message {id:"1236950581249"}) RETURN - CASE m.content IS null + CASE m.content IS NOT null WHEN true THEN m.content ELSE m.imageFile END AS messageContent,