Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Oct 15, 2024
2 parents 3aedcbc + f00f1cf commit 3cfaaf3
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions test/sql/path_finding/top_k.test
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"

0 comments on commit 3cfaaf3

Please sign in to comment.