Skip to content

Unexpected query error #5153

Closed
Closed
@nebula-bots

Description

@nebula-bots

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions