-
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.
Merge branch 'master' into refactor_go_planner
- Loading branch information
Showing
7 changed files
with
107 additions
and
54 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
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 |
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