From 3aedb196570dcdca7703e037e9dee4d46fca73a8 Mon Sep 17 00:00:00 2001 From: jimingquan Date: Wed, 19 Apr 2023 10:59:07 +0800 Subject: [PATCH] fix ic4 --- nebula/queries/interactive-complex-4.ngql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nebula/queries/interactive-complex-4.ngql b/nebula/queries/interactive-complex-4.ngql index 1a5a8615d..766fc1751 100644 --- a/nebula/queries/interactive-complex-4.ngql +++ b/nebula/queries/interactive-complex-4.ngql @@ -1,6 +1,6 @@ MATCH (person:Person)-[:KNOWS]-(friend:Person)<-[:POST_HAS_CREATOR]-(post:Post)-[:HAS_TAG]->(`tag`:`Tag`) WHERE id(person) == $personId -WITH DISTINCT `tag`.`Tag`.name AS tagName, post.Post.creationDate AS creationDate +WITH `tag`.`Tag`.name AS tagName, post.Post.creationDate AS creationDate WITH tagName, CASE WHEN creationDate >= $startDate AND creationDate < $endDate THEN 1 @@ -14,4 +14,4 @@ WITH tagName, sum(valid) AS postCount, sum(inValid) AS inValidPostCount WHERE postCount > 0 AND inValidPostCount == 0 RETURN tagName, postCount ORDER BY postCount DESC, tagName ASC -LIMIT 10 \ No newline at end of file +LIMIT 10