From 36f82c2954970b92a91d8bfef9c47afcc21eba65 Mon Sep 17 00:00:00 2001 From: Oly M <40221301+oyes704@users.noreply.github.com> Date: Wed, 30 Nov 2022 20:18:50 -0500 Subject: [PATCH] Update ic_01.gsql Tested on Person = 30786325583618 and "Mike" - produces outputs with distances up to 106. Problem is with 3rd level connection if more than one path to connect. Original code t.@distance += (i+1) New code correctly calculating distances with maximum of 3. t.@distance = (i+1) --- .../queries_pattern_match/interactive_complex/ic_01.gsql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ldbc_benchmark/tigergraph/queries_pattern_match/interactive_complex/ic_01.gsql b/tools/ldbc_benchmark/tigergraph/queries_pattern_match/interactive_complex/ic_01.gsql index c911c69e4..146c70535 100644 --- a/tools/ldbc_benchmark/tigergraph/queries_pattern_match/interactive_complex/ic_01.gsql +++ b/tools/ldbc_benchmark/tigergraph/queries_pattern_match/interactive_complex/ic_01.gsql @@ -30,7 +30,7 @@ CREATE QUERY ic_1(VERTEX personId, STRING firstName) FOR GRAPH ldbc_snb ACCUM s.@visited += True, t.@visited += True, - t.@distance += (i+1) + t.@distance = (i+1) POST-ACCUM CASE WHEN t.firstName == firstName THEN @@friendInfoTop += friendInfo(t, t.@distance, t.lastName, t.id)