Skip to content

Here is some problem in LIMIT in GO #4233

Closed
@foesa-yang

Description

@foesa-yang

Please check the FAQ documentation before raising an issue

Describe the bug (required)

Your Environments (required)

  • OS: uname -a
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

Expected behavior

 (root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER * YIELD dst(edge) LIMIT [rand32(5),rand32(5),rand32(5)];
+-----------+
| dst(EDGE) |
+-----------+
+-----------+
Empty set (time spent 2329/2746 us)

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER * YIELD dst(edge) LIMIT [3,1,4];
+-----------+
| dst(EDGE) |
+-----------+
+-----------+
Empty set (time spent 2582/2941 us)

Fri, 06 May 2022 07:03:11 UTC

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER *  YIELD dst(edge) LIMIT [3,3,3];
+-------------+
| dst(EDGE)   |
+-------------+
| "team204"   |
| "team215"   |
| "player100" |
+-------------+
Got 3 rows (time spent 2962/3437 us)

Fri, 06 May 2022 07:04:02 UTC

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER * YIELD dst(edge) LIMIT [4,4,4];
+-------------+
| dst(EDGE)   |
+-------------+
| "team204"   |
| "team215"   |
| "player100" |
| "player102" |
+-------------+
Got 4 rows (time spent 2658/3032 us)

Fri, 06 May 2022 07:04:13 UTC

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER *  YIELD dst(edge) LIMIT [5,5,5];
+-------------+
| dst(EDGE)   |
+-------------+
| "team204"   |
| "team215"   |
| "player100" |
| "player102" |
| "player125" |
+-------------+
Got 5 rows (time spent 2838/3314 us)

Fri, 06 May 2022 07:04:20 UTC

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER * YIELD dst(edge) LIMIT [3,1,1];
+-----------+
| dst(EDGE) |
+-----------+
+-----------+
Empty set (time spent 2880/3398 us)

Fri, 06 May 2022 07:22:06 UTC

(root@nebula) [basketballplayer]> GO 3 STEPS FROM "player102" OVER * YIELD dst(edge) LIMIT [3,3,3];
+-------------+
| dst(EDGE)   |
+-------------+
| "team204"   |
| "team215"   |
| "player100" |
+-------------+

Additional context
image

Metadata

Metadata

Assignees

Labels

type/bugType: something is unexpected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions