-
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 PrunePropertiesVisitor bug (#5793)
- Loading branch information
1 parent
5d308fc
commit cba6f5f
Showing
4 changed files
with
54 additions
and
12 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
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,27 @@ | ||
# Copyright (c) 2023 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: Test PrunePropertiesVisitor when switching space | ||
|
||
Scenario: Test PrunePropertiesVisitor when switching space | ||
When executing query: | ||
""" | ||
USE student; | ||
""" | ||
Then the execution should be successful | ||
When profiling query: | ||
""" | ||
USE nba; | ||
MATCH (u:player) | ||
RETURN count(*) | ||
""" | ||
Then the result should be, in any order: | ||
| count(*) | | ||
| 56 | | ||
And the execution plan should be: | ||
| id | name | dependencies | operator info | | ||
| 6 | Aggregate | 8 | | | ||
| 8 | AppendVertices | 2 | { "props": "[{\"props\":[\"_tag\"]}]" } | | ||
| 2 | IndexScan | 1 | | | ||
| 1 | RegisterSpaceToSession | 0 | | | ||
| 0 | Start | | | |