-
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 coalesce * fix test * add test * add tck * fix * fix * fix
- Loading branch information
Showing
3 changed files
with
54 additions
and
27 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 @@ | ||
Feature: Fetch Int Vid Edges | ||
|
||
Background: | ||
Test coalesce function | ||
|
||
Scenario: test normal case | ||
When executing query: | ||
""" | ||
RETURN coalesce(null,1) as result; | ||
""" | ||
Then the result should be, in any order: | ||
| result | | ||
| 1 | | ||
When executing query: | ||
""" | ||
RETURN coalesce(1,2,3) as result; | ||
""" | ||
Then the result should be, in any order: | ||
| result | | ||
| 1 | | ||
When executing query: | ||
""" | ||
RETURN coalesce(null) as result; | ||
""" | ||
Then the result should be, in any order: | ||
| result | | ||
| NULL | | ||
When executing query: | ||
""" | ||
RETURN coalesce(null,[1,2,3]) as result; | ||
""" | ||
Then the result should be, in any order: | ||
| result | | ||
| [1, 2, 3] | | ||
When executing query: | ||
""" | ||
RETURN coalesce(null,1.234) as result; | ||
""" | ||
Then the result should be, in any order: | ||
| result | | ||
| 1.234 | |