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(interactive): Fix bug in ExpandGetVFusionRule, and optimize when GetV has imprecise types #3804

Merged
merged 9 commits into from
May 20, 2024

Conversation

BingqingLyu
Copy link
Collaborator

What do these changes do?

As titled. This pr:

  1. Fix a bug in ExpandGetVFusionRule. For example, assume we have edge types of person-likes-comment, person-likes-post, person-knows-person in schema. Then in queries, if we want to expand person-likes-comment, we would generate a Expand(likes)+GetV(comment) (before this fix, we generate a Expand(likes) only, which is a bug); And if we want to expand person-knows-person, we simply generate a Expand(knows).
  2. Optimize cases when the types in GetV is imprecise, to avoid unnecessary filtering in Runtime.

Related issue number

Fixes #3732 #3802

@siyuan0322 siyuan0322 merged commit f1a4901 into alibaba:main May 20, 2024
28 of 29 checks passed
@BingqingLyu BingqingLyu deleted the fix_fusion_bug branch May 20, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Unexpected ExpandE and GetV fusion
4 participants