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

Prop ref from an unwinded vertex list return BAD_TYPE #4928

Closed
nebula-bots opened this issue Nov 24, 2022 · 0 comments
Closed

Prop ref from an unwinded vertex list return BAD_TYPE #4928

nebula-bots opened this issue Nov 24, 2022 · 0 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. auto-sync find/automation process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently
Milestone

Comments

@nebula-bots
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)

Look at the queries from Nebula below:

(root@nebula) [gdlancer]> MATCH p0 = (v0:Label_3:Label_0)-[e0:Rel_0*0..1]->(:Label_1)<-[e1:Rel_2]-(v1) WHERE (id(v0) in [6, 19, 13, 25, 16, 9, 29, 10, 28, 5, 1]) AND ((e1.Rel_2_3_Bool XOR (e1.Rel_2_3_Bool OR e1.Rel_2_4_Bool))) UNWIND nodes(p0) AS ua0 return  ua0.Label_1.Label_1_2_Bool, ua0
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ua0.Label_1.Label_1_2_Bool | ua0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| BAD_TYPE                   | (9 :Label_5{Label_5_0_String: "Ricky Rubio", Label_5_1_Int: 34, Label_5_2_Int: 52, Label_5_3_Int: 23} :Label_6{Label_6_0_Int: 10, Label_6_1_Bool: true, Label_6_2_String: "Shaquile O'Neal", Label_6_3_String: "Tony Parker", Label_6_4_Int: 23, Label_6_5_Int: 84, Label_6_6_String: "Shaquile O'Neal"} :Label_3{Label_3_0_Bool: true, Label_3_1_String: "Paul George", Label_3_2_Bool: false, Label_3_3_String: "David West", Label_3_4_String: "David West", Label_3_5_Int: 7, Label_3_6_Bool: false} :Label_2{Label_2_0_Double: 0.125608, Label_2_1_Int: 21, Label_2_2_Double: 0.452394, Label_2_3_String: "Marc Gasol", Label_2_4_Int: 34, Label_2_5_Double: 0.88452, Label_2_6_Double: 0.618371} :Label_0{Label_0_0_String: "Paul Gasol", Label_0_1_String: "Jonathon Simmons", Label_0_2_String: "Marco Belinelli", Label_0_3_Bool: false, Label_0_4_Int: 7, Label_0_5_Int: 66}) |
| BAD_TYPE                   | (15 :Label_5{Label_5_0_String: "Jason Kidd", Label_5_1_Int: 25, Label_5_2_Int: 38, Label_5_3_Int: 32} :Label_6{Label_6_0_Int: 89, Label_6_1_Bool: false, Label_6_2_String: "Luka Doncic", Label_6_3_String: "Null1", Label_6_4_Int: 84, Label_6_5_Int: 36, Label_6_6_String: "Stephen Curry"} :Label_4{Label_4_0_Int: 53, Label_4_1_String: "Shaquile O'Neal", Label_4_2_Bool: false, Label_4_3_Double: 0.175132} :Label_0{Label_0_0_String: "Jonathon Simmons", Label_0_1_String: "Aron Baynes", Label_0_2_String: "Ricky Rubio", Label_0_3_Bool: true, Label_0_4_Int: 3, Label_0_5_Int: 68} :Label_1{Label_1_0_String: "JaVale McGee", Label_1_1_String: "James Harden", Label_1_2_Bool: false, Label_1_3_Int: 95})                                                                                                                                                                   |
| BAD_TYPE                   | (9 :Label_5{Label_5_0_String: "Ricky Rubio", Label_5_1_Int: 34, Label_5_2_Int: 52, Label_5_3_Int: 23} :Label_6{Label_6_0_Int: 10, Label_6_1_Bool: true, Label_6_2_String: "Shaquile O'Neal", Label_6_3_String: "Tony Parker", Label_6_4_Int: 23, Label_6_5_Int: 84, Label_6_6_String: "Shaquile O'Neal"} :Label_3{Label_3_0_Bool: true, Label_3_1_String: "Paul George", Label_3_2_Bool: false, Label_3_3_String: "David West", Label_3_4_String: "David West", Label_3_5_Int: 7, Label_3_6_Bool: false} :Label_2{Label_2_0_Double: 0.125608, Label_2_1_Int: 21, Label_2_2_Double: 0.452394, Label_2_3_String: "Marc Gasol", Label_2_4_Int: 34, Label_2_5_Double: 0.88452, Label_2_6_Double: 0.618371} :Label_0{Label_0_0_String: "Paul Gasol", Label_0_1_String: "Jonathon Simmons", Label_0_2_String: "Marco Belinelli", Label_0_3_Bool: false, Label_0_4_Int: 7, Label_0_5_Int: 66}) |
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Got 3 rows (time spent 2.489ms/19.879125ms)

Wed, 23 Nov 2022 18:34:16 CST

(root@nebula) [gdlancer]>

The second row returned does have Labe_1 but nebula return a BAD_TYPE error on prop ref ua0.Label_1.Label_1_2_Bool, in contrast, Neo4j reutrn the right result:

$  MATCH p0 = (v0:Label_3:Label_0)-[e0:Rel_0*0..1]->(:Label_1)<-[e1:Rel_2]-(v1) WHERE (v0.id in [6, 19, 13, 25, 16, 9, 29, 10, 28, 5, 1]) AND ((e1.Rel_2_3_Bool XOR (e1.Rel_2_3_Bool OR e1.Rel_2_4_Bool))) UNWIND nodes(p0) AS ua0 return   ua0.Label_1_2_Bool, ua0

╒════════════════════╤══════════════════════════════════════════════════════════════════════╕
│"ua0.Label_1_2_Bool"│"ua0"                                                                 │
╞════════════════════╪══════════════════════════════════════════════════════════════════════╡
│null                │{"Label_5_1_Int":34,"Label_0_5_Int":66,"Label_2_0_Double":0.125608,"La│
│                    │bel_2_2_Double":0.452394,"Label_2_4_Int":34,"Label_6_1_Bool":true,"Lab│
│                    │el_5_2_Int":52,"Label_2_1_Int":21,"id":9,"Label_3_2_Bool":false,"Label│
│                    │_5_0_String":"Ricky Rubio","Label_5_3_Int":23,"Label_2_3_String":"Marc│
│                    │ Gasol","Label_6_6_String":"Shaquile O'Neal","Label_6_0_Int":10,"Label│
│                    │_3_6_Bool":false,"Label_6_2_String":"Shaquile O'Neal","Label_6_4_Int":│
│                    │23,"Label_0_4_Int":7,"Label_2_6_Double":0.618371,"Label_0_1_String":"J│
│                    │onathon Simmons","Label_0_2_String":"Marco Belinelli","Label_2_5_Doubl│
│                    │e":0.88452,"Label_6_3_String":"Tony Parker","Label_3_3_String":"David │
│                    │West","Label_3_1_String":"Paul George","Label_0_3_Bool":false,"Label_3│
│                    │_5_Int":7,"Label_3_0_Bool":true,"Label_3_4_String":"David West","Label│
│                    │_0_0_String":"Paul Gasol","Label_6_5_Int":84}                         │
├────────────────────┼──────────────────────────────────────────────────────────────────────┤
│false               │{"Label_1_2_Bool":false,"Label_5_1_Int":25,"Label_0_5_Int":68,"Label_1│
│                    │_1_String":"James Harden","Label_1_0_String":"JaVale McGee","Label_6_1│
│                    │_Bool":false,"Label_5_2_Int":38,"Label_4_0_Int":53,"Label_1_3_Int":95,│
│                    │"id":15,"Label_4_1_String":"Shaquile O'Neal","Label_4_2_Bool":false,"L│
│                    │abel_4_3_Double":0.175132,"Label_5_0_String":"Jason Kidd","Label_5_3_I│
│                    │nt":32,"Label_6_6_String":"Stephen Curry","Label_6_0_Int":89,"Label_6_│
│                    │2_String":"Luka Doncic","Label_6_4_Int":84,"Label_0_4_Int":3,"Label_0_│
│                    │1_String":"Aron Baynes","Label_0_2_String":"Ricky Rubio","Label_6_3_St│
│                    │ring":"Null1","Label_0_3_Bool":true,"Label_0_0_String":"Jonathon Simmo│
│                    │ns","Label_6_5_Int":36}                                               │
├────────────────────┼──────────────────────────────────────────────────────────────────────┤
│null                │{"Label_5_1_Int":34,"Label_0_5_Int":66,"Label_2_0_Double":0.125608,"La│
│                    │bel_2_2_Double":0.452394,"Label_2_4_Int":34,"Label_6_1_Bool":true,"Lab│
│                    │el_5_2_Int":52,"Label_2_1_Int":21,"id":9,"Label_3_2_Bool":false,"Label│
│                    │_5_0_String":"Ricky Rubio","Label_5_3_Int":23,"Label_2_3_String":"Marc│
│                    │ Gasol","Label_6_6_String":"Shaquile O'Neal","Label_6_0_Int":10,"Label│
│                    │_3_6_Bool":false,"Label_6_2_String":"Shaquile O'Neal","Label_6_4_Int":│
│                    │23,"Label_0_4_Int":7,"Label_2_6_Double":0.618371,"Label_0_1_String":"J│
│                    │onathon Simmons","Label_0_2_String":"Marco Belinelli","Label_2_5_Doubl│
│                    │e":0.88452,"Label_6_3_String":"Tony Parker","Label_3_3_String":"David │
│                    │West","Label_3_1_String":"Paul George","Label_0_3_Bool":false,"Label_3│
│                    │_5_Int":7,"Label_3_0_Bool":true,"Label_3_4_String":"David West","Label│
│                    │_0_0_String":"Paul Gasol","Label_6_5_Int":84}                         │
└────────────────────┴──────────────────────────────────────────────────────────────────────┘

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:

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

Expected behavior

Additional context

@nebula-bots nebula-bots added auto-sync find/automation severity/none Severity of bug type/bug Type: something is unexpected labels Nov 24, 2022
@xtcyclist xtcyclist self-assigned this Nov 24, 2022
@Sophie-Xie Sophie-Xie added this to the v3.4.0 milestone Nov 24, 2022
@HarrisChu HarrisChu added affects/none PR/issue: this bug affects none version. wontfix Solution: this will not be worked on recently labels Dec 1, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Dec 7, 2022
@Hester-Gu Hester-Gu added the process/done Process of bug label Jan 13, 2023
@github-actions github-actions bot removed the process/fixed Process of bug label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. auto-sync find/automation process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently
Projects
None yet
Development

No branches or pull requests

5 participants