Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty tag endpoint returns an incorrect result #3340

Closed
czpmango opened this issue Nov 23, 2021 · 2 comments
Closed

Empty tag endpoint returns an incorrect result #3340

czpmango opened this issue Nov 23, 2021 · 2 comments
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

czpmango commented Nov 23, 2021

Describe the bug (required)

Empty tag endpoint returns an incorrect result

Your Environments (required)

Version: v2.6.0

How To Reproduce(required)

Steps to reproduce the behavior:

(czp@nebula) [nba]> create tag B()
Execution succeeded (time spent 1781/2075 us)

(czp@nebula) [nba]> insert vertex B() values "1":()
Execution succeeded (time spent 3505/3783 us)

(czp@nebula) [nba]> INSERT edge like(likeness) values "Tim Duncan"->"1":(97)
Execution succeeded (time spent 3751/4058 us)

(czp@nebula) [nba]> go from "Tim Duncan" over like where like.likeness>95 yield like._dst as dst1,$$ as dst2
+------+------+
| dst1 | dst2 |
+------+------+
| "1"  |      |
+------+------+
Got 1 rows (time spent 5686/6114 us)

(czp@nebula) [nba]> create tag C(a int)
Execution succeeded (time spent 1683/1988 us)

(czp@nebula) [nba]> insert vertex C(a) values "2":(3)
Execution succeeded (time spent 3186/3509 us)

(czp@nebula) [nba]> insert edge like(likeness) values "Tim Duncan"->"2":(97)
Execution succeeded (time spent 3031/3359 us)

(czp@nebula) [nba]> go from "Tim Duncan" over like where like.likeness==97 yield like._dst as dst1,$$ as dst2
+------+----------------+
| dst1 | dst2           |
+------+----------------+
| "1"  |                |
+------+----------------+
| "2"  | ("2" :C{a: 3}) |
+------+----------------+

Expected behavior

(czp@nebula) [nba]> go from "Tim Duncan" over like where like.likeness==97 yield like._dst as dst1,$$ as dst2
+------+----------------+
| dst1 | dst2           |
+------+----------------+
| "1"  |     ("1":B{})  |
+------+----------------+
| "2"  | ("2" :C{a: 3}) |
+------+----------------+

@czpmango czpmango added the type/bug Type: something is unexpected label Nov 23, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Nov 23, 2021
@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Dec 3, 2021

Interesting. $$ as dst2 should result an syntax error.

@Sophie-Xie Sophie-Xie assigned nevermore3 and unassigned CPWstatic Dec 17, 2021
@nevermore3
Copy link
Contributor

fix in #3335

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants