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

graph does not filter out record correctly #5423

Closed
nebula-bots opened this issue Mar 21, 2023 · 0 comments · Fixed by #5422
Closed

graph does not filter out record correctly #5423

nebula-bots opened this issue Mar 21, 2023 · 0 comments · Fixed by #5422
Assignees
Labels
affects/master PR/issue: this bug affects master version. auto-sync process/done Process of bug severity/major Severity of bug source/automation 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 two queries below:

(root@nebula) [gdlancer]> MATCH (v0)<-[e0]-()<-[e1]-(v1) WHERE (id(v0) == 6) return  ((NOT (NOT ((v1.Label_6.Label_6_5_Int > (e1.Rel_0_5_Int - 0.300177)) AND v1.Label_6.Label_6_1_Bool))))

+--------------------------------------------------------------------------------------------+
| !(!(((v1.Label_6.Label_6_5_Int>(e1.Rel_0_5_Int-0.300177)) AND v1.Label_6.Label_6_1_Bool))) |
+--------------------------------------------------------------------------------------------+
| __NULL__                                                                                   |
| false                                                                                      |
| true                                                                                       |
| false                                                                                      |
| false                                                                                      |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| false                                                                                      |
| true                                                                                       |
| false                                                                                      |
| false                                                                                      |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
+--------------------------------------------------------------------------------------------+
Got 26 rows (time spent 3.265ms/22.177125ms)

Thu, 12 Jan 2023 18:39:01 CST

(root@nebula) [gdlancer]> MATCH (v0)<-[e0]-()<-[e1]-(v1) WHERE (id(v0) == 6) AND ((NOT (NOT ((v1.Label_6.Label_6_5_Int > (e1.Rel_0_5_Int - 0.300177)) AND v1.Label_6.Label_6_1_Bool)))) RETURN  ((NOT (NOT ((v1.Label_6.Label_6_5_Int > (e1.Rel_0_5_Int - 0.300177)) AND v1.Label_6.Label_6_1_Bool))))
+--------------------------------------------------------------------------------------------+
| !(!(((v1.Label_6.Label_6_5_Int>(e1.Rel_0_5_Int-0.300177)) AND v1.Label_6.Label_6_1_Bool))) |
+--------------------------------------------------------------------------------------------+
| __NULL__                                                                                   |
| true                                                                                       |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
| true                                                                                       |
| __NULL__                                                                                   |
| __NULL__                                                                                   |
+--------------------------------------------------------------------------------------------+
Got 8 rows (time spent 2.713ms/17.916709ms)

Thu, 12 Jan 2023 18:39:04 CST

(root@nebula) [gdlancer]>

The second query conflict to the first query, the problem is that Nebula does filter out the rows with NULL value in the where predicate.

Your Environments (required)

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 severity/major Severity of bug type/bug Type: something is unexpected source/automation labels Mar 21, 2023
@xtcyclist xtcyclist self-assigned this Mar 21, 2023
@Sophie-Xie Sophie-Xie added this to the v3.5.0 milestone Mar 21, 2023
@github-actions github-actions bot added the process/fixed Process of bug label Mar 24, 2023
@nebula-bots nebula-bots added process/done Process of bug and removed process/fixed Process of bug labels Apr 11, 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/major Severity of bug source/automation type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants