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

fix go statement, id($$) filter is incorrect #4768

Merged
merged 2 commits into from
Oct 21, 2022

Conversation

jievince
Copy link
Contributor

@jievince jievince commented Oct 21, 2022

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

fix #4765

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Because GetDstBySrc doesn't support filter push-down,
replacing GetNeighbors with GetDstBySrc in the following case will not bring performance benefits.
So this pr will not optimize this case.

GO FROM "Tony Parker" OVER like WHERE like._dst != "Tim Duncan" YIELD DISTINCT id($$)

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • N/A

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

@jievince jievince added the ready-for-testing PR: ready for the CI test label Oct 21, 2022
@@ -426,30 +331,6 @@ Feature: Simple case
| 2 | GetDstBySrc | 1 | |
| 1 | Start | | |
| 0 | Start | | |
When profiling query:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just move them

@Shylock-Hg
Copy link
Contributor

I think GetDstBySrc should support push-down filter too. But could add in future.

@jievince
Copy link
Contributor Author

I think GetDstBySrc should support push-down filter too. But could add in future.

Could add it in future. But I don't think it will gain much performance improvement against GetNeighbors

@Shylock-Hg
Copy link
Contributor

I think GetDstBySrc should support push-down filter too. But could add in future.

Could add it in future. But I don't think it will gain much performance improvement against GetNeighbors

Make sense.

@jievince jievince changed the title fix issue 4765 [DO NOT MERGE]fix issue 4765 Oct 21, 2022
@Sophie-Xie Sophie-Xie changed the title [DO NOT MERGE]fix issue 4765 fix issue 4765 Oct 21, 2022
@Sophie-Xie Sophie-Xie changed the title fix issue 4765 fix go statement, id($$) filter is incorrect Oct 21, 2022
@Sophie-Xie Sophie-Xie merged commit cea9c61 into vesoft-inc:master Oct 21, 2022
@jievince jievince deleted the fix-colnames-bug branch October 21, 2022 08:08
Sophie-Xie pushed a commit that referenced this pull request Oct 21, 2022
@Sophie-Xie Sophie-Xie added the cherry-pick-v3.3 PR: need cherry-pick to this version label Oct 21, 2022
Sophie-Xie added a commit that referenced this pull request Oct 21, 2022
* logging error if any error in step (#4759)

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

* fix storage job (#4762)

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

* fix issue 4765 (#4768)

* Avoid full scan of match when there is an Relational In predicate (#4748)

* Avoid match full scan when has in predicate

fix

small fix

add test case

small change

add test cases

small fix

fmt

* small delete

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

Co-authored-by: Harris.Chu <1726587+HarrisChu@users.noreply.github.com>
Co-authored-by: Alex Xing <90179377+SuperYoko@users.noreply.github.com>
Co-authored-by: jie.wang <38901892+jievince@users.noreply.github.com>
Co-authored-by: kyle.cao <kyle.cao@vesoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.3 PR: need cherry-pick to this version ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go statement, id($$) filter is incorrect
5 participants