一条go查询拆成两个之后结果不一致

  • nebula 版本:nebula-graph-2.0.0.el7.x86_64.rpm
  • 部署方式:集群
  • 是否为线上版本:N
(root@nebula) [basketballplayer]> go from "palyer100","player101" over serve where serve.start_year >1888
+------------+
| serve._dst |
+------------+
| "team201"  |
+------------+
Got 1 rows (time spent 2285/2839 us)

Tue, 27 Apr 2021 15:51:31 CST

(root@nebula) [basketballplayer]> go from "player101" over serve where serve.start_year >1995

+------------+
| serve._dst |
+------------+
| "team201"  |
+------------+
Got 1 rows (time spent 2304/2860 us)

Tue, 27 Apr 2021 15:53:12 CST

(root@nebula) [basketballplayer]> go from "player100" over serve where serve.start_year >1995
+------------+
| serve._dst |
+------------+
| "team200"  |
+------------+
Got 1 rows (time spent 2966/3459 us)

一条go查询拆成两个之后结果不一致 使用的是官方的crud示例。文档上演示会有多条数据,我也试了一下,就出了这个问题

看起来是bug,你可以把
go from "palyer100","player101" over serve YIELD serve._src, serve.start_year, serve._dst
结果贴下吗? 还有你看的是哪个文档?文档链接也发下

(root@nebula) [basketballplayer]> go from "palyer100","player101" over serve YIELD serve._src, serve.start_year, serve._dst
+-------------+------------------+------------+
| serve._src  | serve.start_year | serve._dst |
+-------------+------------------+------------+
| "player101" | 1999             | "team201"  |
+-------------+------------------+------------+

文档地址:
https://docs.nebula-graph.com.cn/2.0.1/3.ngql-guide/7.general-query-statements/3.go/

添加过滤条件 这个例子的变体。

# 添加过滤条件。
nebula> GO FROM "player100", "player102" OVER serve \
        WHERE serve.start_year > 1995 \
        YIELD DISTINCT $$.team.name AS team_name, serve.start_year AS start_year, $^.player.name AS player_name;
+-----------------+------------+---------------------+
| team_name       | start_year | player_name         |
+-----------------+------------+---------------------+
| "Spurs"         | 1997       | "Tim Duncan"        |
+-----------------+------------+---------------------+
| "Trail Blazers" | 2006       | "LaMarcus Aldridge" |
+-----------------+------------+---------------------+
| "Spurs"         | 2015       | "LaMarcus Aldridge" |
+-----------------+------------+---------------------+

最后,就是我发现这个go章节,里面的测试数据和下图的逻辑有些出入。如果可以的话,请在每个章节前说明用的哪个数据集或者数据关系,方便在执行时验证结果。

看瞎我的眼,你的query写错了

第一条query
go from "palyer100","player101" over serve where serve.start_year >1888
里面的点 "palyer100" 写错了,是 “player100”

2 个赞

:joy::joy::joy:

:hot_face:

1 个赞

浙ICP备20010487号