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

Unexpected query error #5153

Closed
nebula-bots opened this issue Dec 29, 2022 · 0 comments · Fixed by #5151
Closed

Unexpected query error #5153

nebula-bots opened this issue Dec 29, 2022 · 0 comments · Fixed by #5151
Labels
affects/master PR/issue: this bug affects master version. auto-sync find/automation process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@nebula-bots
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)

Look at the queries below:

(root@nebula) [gdlancer]> MATCH p0 = (v0)-[e0]->()-[e1]->() WHERE (id(v0) == 4) AND ((NOT e0.Rel_4_0_Bool)) UNWIND nodes(p0) AS ua0 WITH ua0, e0  WITH e0, ua0 WHERE ua0.Label_6.Label_6_1_Bool return id(ua0)
[ERROR (-1005)]: Failed to evaluate condition: $ua0.Label_6.Label_6_1_Bool. For boolean conditions, please write in their full forms like <condition> == <true/false> or <condition> IS [NOT] NULL.

Wed, 28 Dec 2022 15:09:58 CST

(root@nebula) [gdlancer]> MATCH p0 = (v0)-[e0]->()-[e1]->() WHERE (id(v0) == 4) AND ((NOT e0.Rel_4_0_Bool)) UNWIND nodes(p0) AS ua0 WITH ua0, e0  WITH e0, ua0  return ua0.Label_6.Label_6_1_Bool
+----------------------------+
| ua0.Label_6.Label_6_1_Bool |
+----------------------------+
| true                       |
| BAD_TYPE                   |
| BAD_TYPE                   |
| true                       |
| BAD_TYPE                   |
| false                      |
| true                       |
| BAD_TYPE                   |
| BAD_TYPE                   |
+----------------------------+
Got 9 rows (time spent 3.806ms/21.363541ms)

Wed, 28 Dec 2022 15:10:32 CST

(root@nebula) [gdlancer]> MATCH p0 = (v0)-[e0]->()-[e1]->() WHERE (id(v0) == 4) AND ((NOT e0.Rel_4_0_Bool)) UNWIND nodes(p0) AS ua0 WITH ua0, e0  WITH e0, ua0  return labels(ua0)
+--------------------------------------------------------------------+
| labels(ua0)                                                        |
+--------------------------------------------------------------------+
| ["Label_5", "Label_6", "Label_0"]                                  |
| ["Label_5"]                                                        |
| ["Label_1"]                                                        |
| ["Label_5", "Label_6", "Label_0"]                                  |
| ["Label_5"]                                                        |
| ["Label_5", "Label_6", "Label_3", "Label_4", "Label_0", "Label_1"] |
| ["Label_5", "Label_6", "Label_0"]                                  |
| ["Label_5"]                                                        |
| ["Label_1"]                                                        |
+--------------------------------------------------------------------+
Got 9 rows (time spent 3.539ms/20.568834ms)

Wed, 28 Dec 2022 15:11:11 CST

The first query return an unexpected error when there are vertexes without tag Label_6.

Your Environments (required)

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

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@nebula-bots nebula-bots added affects/master PR/issue: this bug affects master version. auto-sync find/automation severity/major Severity of bug type/bug Type: something is unexpected labels Dec 29, 2022
@Sophie-Xie Sophie-Xie added this to the v3.4.0 milestone Dec 29, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Dec 30, 2022
@nebula-bots nebula-bots added process/done Process of bug and removed process/fixed Process of bug labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/master PR/issue: this bug affects master version. auto-sync find/automation process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants