generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# name: test/sql/path_finding/top_k.test | ||
# description: Testing top-k functionality, not implemented yet. | ||
# group: [duckpgq_sql_path_finding] | ||
|
||
require duckpgq | ||
|
||
statement ok | ||
CREATE TABLE Student(id BIGINT, name VARCHAR); INSERT INTO Student VALUES (0, 'Daniel'), (1, 'Tavneet'), (2, 'Gabor'), (3, 'Peter'), (4, 'David'); | ||
|
||
statement ok | ||
CREATE TABLE know(src BIGINT, dst BIGINT, createDate BIGINT); INSERT INTO know VALUES (0,1, 10), (0,2, 11), (0,3, 12), (3,0, 13), (1,2, 14), (1,3, 15), (2,3, 16), (4,3, 17); | ||
|
||
statement ok | ||
-CREATE PROPERTY GRAPH pg | ||
VERTEX TABLES ( | ||
Student LABEL person | ||
) | ||
EDGE TABLES ( | ||
know SOURCE KEY ( src ) REFERENCES Student ( id ) | ||
DESTINATION KEY ( dst ) REFERENCES Student ( id ) | ||
label knows | ||
); | ||
|
||
statement error | ||
-FROM GRAPH_TABLE (pg | ||
MATCH | ||
p = ANY SHORTEST 5 WALK (a:Person)-[k:knows]-> *(b:Person) | ||
WHERE a.name = 'Daniel' | ||
COLUMNS (p, a.name as name, b.name as school) | ||
) study; | ||
---- | ||
Parser Error: syntax error at or near "5" | ||
|
||
|
||
statement error | ||
-FROM GRAPH_TABLE (pg | ||
MATCH | ||
p = SHORTEST 5 (a:Person)-[k:knows]-> *(b:Person) | ||
WHERE a.name = 'Daniel'); | ||
---- | ||
Not implemented Error: TopK has not been implemented yet. | ||
|
||
statement error | ||
-FROM GRAPH_TABLE (pg | ||
MATCH | ||
p = SHORTEST 5 WALK (a:Person)-[k:knows]-> *(b:Person) | ||
WHERE a.name = 'Daniel'); | ||
---- | ||
Not implemented Error: TopK has not been implemented yet. | ||
|
||
statement error | ||
-FROM GRAPH_TABLE (pg | ||
MATCH | ||
p = ANY SHORTEST 5 WALK (a:Person)-[k:knows]-> *(b:Person) | ||
WHERE a.name = 'Daniel'); | ||
---- | ||
Parser Error: syntax error at or near "5" |