-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bec5fe
commit 5b607a6
Showing
6 changed files
with
71 additions
and
40 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
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,35 @@ | ||
-GROUP TCK | ||
-DATASET CSV tck | ||
|
||
-- | ||
|
||
# Match non-existent relationships returns empty | ||
-CASE Scenario1 | ||
-STATEMENT CREATE NODE TABLE A(ID SERIAL, PRIMARY KEY(ID)); | ||
---- ok | ||
-STATEMENT MATCH ()-[r]->() RETURN r; | ||
---- error | ||
Binder exception: No rel table exists in database. | ||
|
||
# Matching a relationship pattern using a label predicate on both sides | ||
-CASE Scenario2 | ||
-STATEMENT CREATE NODE TABLE A(ID SERIAL, PRIMARY KEY(ID)); | ||
---- ok | ||
-STATEMENT CREATE NODE TABLE B(ID SERIAL, PRIMARY KEY(ID)); | ||
---- ok | ||
-STATEMENT CREATE REL TABLE T1(FROM A TO B); | ||
---- ok | ||
-STATEMENT CREATE REL TABLE T2(FROM B TO A); | ||
---- ok | ||
-STATEMENT CREATE REL TABLE T3(FROM B TO B); | ||
---- ok | ||
-STATEMENT CREATE REL TABLE T4(FROM A TO A); | ||
---- ok | ||
-STATEMENT CREATE (:A)-[:T1]->(:B), | ||
(:B)-[:T2]->(:A), | ||
(:B)-[:T3]->(:B), | ||
(:A)-[:T4]->(:A); | ||
---- ok | ||
-STATEMENT MATCH (:A)-[r]->(:B) RETURN r; | ||
---- 1 | ||
(0:0)-{_LABEL: T1, _ID: 2:0}->(1:0) |