-
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.
fixed fixed_string expression eval for go
- Loading branch information
1 parent
f490d4d
commit 78c3648
Showing
3 changed files
with
70 additions
and
20 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,54 @@ | ||
Feature: FixedString expression Eval | ||
|
||
Scenario: FixedString GO Expression | ||
Given an empty graph | ||
And create a space with following options: | ||
| partition_num | 1 | | ||
| replica_factor | 1 | | ||
| vid_type | int64 | | ||
| charset | utf8 | | ||
| collate | utf8_bin | | ||
And having executed: | ||
""" | ||
CREATE TAG IF NOT EXISTS fixed_string_tag_1(c1 fixed_string(30)); | ||
CREATE EDGE IF NOT EXISTS fixed_string_edge_1(c1 fixed_string(30)); | ||
""" | ||
# insert vertex succeeded | ||
When try to execute query: | ||
""" | ||
INSERT VERTEX fixed_string_tag_1(c1) VALUES 1:("row"), 2:("row"), 3:("row") | ||
""" | ||
Then the execution should be successful | ||
# insert edge succeeded | ||
When executing query: | ||
""" | ||
INSERT EDGE fixed_string_edge_1(c1) VALUES 1->2:("row"), 1->3:("row") | ||
""" | ||
Then the execution should be successful | ||
# check fixed string expression with go | ||
When executing query: | ||
""" | ||
GO from 1 over fixed_string_edge_1 where $$.fixed_string_tag_1.c1 == "row" yield $$.fixed_string_tag_1.c1 as c1 | ||
""" | ||
Then the result should be, in any order, with relax comparison: | ||
| c1 | | ||
| "row" | | ||
| "row" | | ||
# check fixed string expression with go | ||
When executing query: | ||
""" | ||
GO from 1 over fixed_string_edge_1 where $^.fixed_string_tag_1.c1 == "row" yield $$.fixed_string_tag_1.c1 as c1 | ||
""" | ||
Then the result should be, in any order, with relax comparison: | ||
| c1 | | ||
| "row" | | ||
| "row" | | ||
# check fixed string expression with go | ||
When executing query: | ||
""" | ||
GO from 1 over fixed_string_edge_1 where fixed_string_edge_1.c1 == "row" yield $$.fixed_string_tag_1.c1 as c1 | ||
""" | ||
Then the result should be, in any order, with relax comparison: | ||
| c1 | | ||
| "row" | | ||
| "row" | |