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

Filter is not pushed down in some case #5396

Closed
jievince opened this issue Mar 10, 2023 · 1 comment · Fixed by #5395
Closed

Filter is not pushed down in some case #5396

jievince opened this issue Mar 10, 2023 · 1 comment · Fixed by #5395
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@jievince
Copy link
Contributor

Introduction

Contents

Related work

query 1

profile match (v:player)-[e:follow]-(mh:player) where id(v)=="player100" with mh as mh match (mh:player)-[e:follow]-() with e as e,mh as mh where none_direct_dst(e) in ["player102","player103"] return none_direct_dst(e), mh.player.name

query2

profile match (v:player)-[e:follow]-(mh:player) where id(v)=="player100" with mh as mh match (mh:player)-[e:follow]-(c) with e as e,mh as mh where none_direct_dst(e) in ["player102","player103"] return none_direct_dst(e), mh.player.name

Query2 add a variable c to the node pattern, compared to query1. In this case, filter is not pushed down.

@jievince jievince added the type/enhancement Type: make the code neat or more efficient label Mar 10, 2023
@jievince
Copy link
Contributor Author

The reason is the ruleEliminateAppendVerticesRule is applied first, and then the rule PushFilterDownTraverseRule could not be matched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant