-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some filter don't push down project. (#4841)
- Loading branch information
1 parent
d9c4a6c
commit 4191724
Showing
2 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright (c) 2022 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: Test predication push down in go | ||
|
||
Background: | ||
Given a graph with space named "nba" | ||
|
||
# #4838 | ||
Scenario: predication push down in go | ||
When profiling query: | ||
""" | ||
GO FROM "Tim Duncan" OVER like WHERE like._dst NOT IN ["xxx"] | ||
YIELD like._dst as dst | | ||
GO FROM $-.dst OVER like REVERSELY WHERE like._dst IN ["Tim Duncan"] | ||
YIELD like._dst AS dst; | ||
""" | ||
Then the result should be, in any order: | ||
| dst | | ||
| "Tim Duncan" | | ||
| "Tim Duncan" | | ||
And the execution plan should be: | ||
| id | name | dependencies | operator info | | ||
| 10 | Project | 15 | | | ||
| 15 | InnerJoin | 17 | | | ||
| 17 | Project | 18 | | | ||
| 18 | GetNeighbors | 3 | { "filter": "(like._dst IN [\"Tim Duncan\"])" } | | ||
| 3 | Project | 11 | | | ||
| 11 | GetNeighbors | 0 | | | ||
| 0 | Start | | | |