union 4~6 shortestPath match graphd connect error #5994
Labels
affects/none
PR/issue: this bug affects none version.
severity/none
Severity of bug
type/bug
Type: something is unexpected
**Describe the bug (required) **
执行 union 4~6条 包含使用shortestPath 的match查询 导致 graphd 连接异常
发现时机 在编写查询tag集合的点的关联查询时, 在查第二跳时发现 因为要将途径点线看作一条线,所以产生出这种写法
原始查询语句
with ["player","team"] as tgs
match p=shortestPath((a:player{id:11})-[..]-(b:player))
where none( nd in nodes(p)[1..nodes(p).size -1] where any( tg in tgs where tg in lables(nd ) ) )
RETURN b
UNION
with ["player","team"] as tg
match p=shortestPath((a:player{id:11})-[..]-(b:team))
where none( nd in nodes(p)[1..nodes(p).size -1] where any( tg in tgs where tg in lables(nd ) ) )
RETURN b
Your Environments (required)
How To Reproduce(required)
Steps to reproduce the behavior:
CREATE SPACE IF NOT EXISTS my_space_1 (vid_type=INT);
CREATE TAG player(id int,name string, age int);
CREATE TAG INDEX IF NOT EXISTS player_index_0 on player(id);
REBUILD TAG INDEX player_index_0;
CREATE EDGE follow(degree int);
INSERT VERTEX player (id,name, age) VALUES 11:(11,"n1", 12);
INSERT VERTEX player (id,name, age) VALUES 12:(12,"n2", 16);
INSERT EDGE follow(degree) VALUES 11->12:(1);
match p=shortestPath((a:player{id:11})-[e:follow]-(b:player{id:12})) RETURN p UNION
match p=shortestPath((a:player{id:11})-[e:follow]-(b:player{id:12})) RETURN p UNION
match p=shortestPath((a:player{id:11})-[e:follow]-(b:player{id:12})) RETURN p UNION
match p=shortestPath((a:player{id:11})-[e:follow]-(b:player{id:12})) RETURN p
Expected behavior
快速查询出这一条路径
Additional context
The text was updated successfully, but these errors were encountered: