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

when match ngql return contains the wrong tag, properties(v) returns incompletely #4733

Closed
nebula-bots opened this issue Oct 17, 2022 · 0 comments · Fixed by #4949
Closed
Assignees
Labels
affects/master PR/issue: this bug affects master version. auto-sync process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@nebula-bots
Copy link
Contributor

Describe the bug (required)

as title

Your Environments (required)

nebula-graphd version 3.3.0, Git: 8d63052, Build Time: Oct 13 2022 17:19:57
This source code is licensed under Apache 2.0 License.

How To Reproduce(required)

Steps to reproduce the behavior:

  • create schema
CREATE SPACE `nba09` (partition_num = 9, replica_factor = 1, charset = utf8, collate = utf8_bin, vid_type = FIXED_STRING(30), atomic_edge = false)
USE nba09
CREATE TAG player(name string, age int);
CREATE TAG team(name string);
CREATE EDGE follow(degree int);
CREATE EDGE INDEX follow_index on follow();
  • insert data
INSERT VERTEX player(name, age) VALUES "A":("A_player", 18),"B":("B_player", 18),"C":("C_player", 18);
INSERT VERTEX team(name) VALUES "A":("A_team");
INSERT EDGE follow () VALUES "A"->"B":(),"A"->"C":(),"B"->"C":(),"D"->"E":();
  • execute ngql
    The first ngql return contains the wrong tag:errortag, properties(v) returns incompletely ;
    The second ngql return does not contains the wrong tag:errortag, properties(v) returns correctly;
(root@nebula) [nba08]>   match (v:player)-[:follow]->(t) return v.player.name, t.errortag.name,properties(v),t
+---------------+-----------------+--------------------+------------------------------------------+
| v.player.name | t.errortag.name | properties(v)      | t                                        |
+---------------+-----------------+--------------------+------------------------------------------+
| "A_player"    | __NULL__        | {name: "A_player"} | ("B" :player{age: 18, name: "B_player"}) |
| "B_player"    | __NULL__        | {name: "B_player"} | ("C" :player{age: 18, name: "C_player"}) |
| "A_player"    | __NULL__        | {name: "A_player"} | ("C" :player{age: 18, name: "C_player"}) |
+---------------+-----------------+--------------------+------------------------------------------+
Got 3 rows (time spent 3865/31002 us)

Fri, 14 Oct 2022 17:17:32 CST

(root@nebula) [nba08]>   match (v:player)-[:follow]->(t) return v.player.name, t.player.name,properties(v),t
+---------------+---------------+-----------------------------+------------------------------------------+
| v.player.name | t.player.name | properties(v)               | t                                        |
+---------------+---------------+-----------------------------+------------------------------------------+
| "A_player"    | "B_player"    | {age: 18, name: "A_player"} | ("B" :player{age: 18, name: "B_player"}) |
| "B_player"    | "C_player"    | {age: 18, name: "B_player"} | ("C" :player{age: 18, name: "C_player"}) |
| "A_player"    | "C_player"    | {age: 18, name: "A_player"} | ("C" :player{age: 18, name: "C_player"}) |
+---------------+---------------+-----------------------------+------------------------------------------+
Got 3 rows (time spent 2702/31738 us)

Fri, 14 Oct 2022 17:17:41 CST

Expected behavior
properties(v) returns correctly

@nebula-bots nebula-bots added auto-sync severity/minor Severity of bug type/bug Type: something is unexpected labels Oct 17, 2022
@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Oct 17, 2022
@Sophie-Xie Sophie-Xie modified the milestones: v3.3.0, v3.4.0 Oct 17, 2022
@xtcyclist xtcyclist added type/bug/correctness Query runs normaly but produces wrong results. type/bug/compatibility Bugs related to compatibility with other languages like openCypher. labels Nov 9, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Nov 29, 2022
@nebula-bots nebula-bots added affects/master PR/issue: this bug affects master version. process/done Process of bug and removed type/bug/compatibility Bugs related to compatibility with other languages like openCypher. type/bug/correctness Query runs normaly but produces wrong results. process/fixed Process of bug labels Jan 4, 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 process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants