forked from vesoft-inc/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use switch space combine with match (vesoft-inc#2480)
Co-authored-by: Yichen Wang <[email protected]>
- Loading branch information
1 parent
a6ee894
commit 99d729b
Showing
2 changed files
with
53 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,41 @@ | ||
# Copyright (c) 2023 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
# Fix https://github.com/vesoft-inc/nebula/issues/5263 | ||
Feature: Use space combine with Match | ||
|
||
Scenario: Use space combine with Match | ||
Given an empty graph | ||
And load "nba" csv data to a new space | ||
When executing query: | ||
""" | ||
CREATE USER IF NOT EXISTS new_user_5263 WITH PASSWORD 'nebula'; | ||
""" | ||
Then the execution should be successful | ||
When executing query: | ||
""" | ||
GRANT ROLE ADMIN ON nba TO new_user_5263; | ||
""" | ||
Then the execution should be successful | ||
And wait 3 seconds | ||
When executing query with user "new_user_5263" and password "nebula": | ||
""" | ||
USE nba; MATCH (p)-[e]->(v) WHERE id(p)=="Tony Parker" RETURN v.player.age | ||
""" | ||
Then the result should be, in any order, with relax comparison: | ||
| v.player.age | | ||
| NULL | | ||
| NULL | | ||
| 25 | | ||
| 33 | | ||
| 41 | | ||
| 42 | | ||
| 33 | | ||
| 41 | | ||
| 42 | | ||
When executing query: | ||
""" | ||
DROP USER IF EXISTS new_user_5263; | ||
""" | ||
Then the execution should be successful | ||
Then drop the used space |