Skip to content

Commit

Permalink
Merge pull request #84 from cwida/83-make-edge-table-in-property-grap…
Browse files Browse the repository at this point in the history
…h-definition-optional

Change parser to make EdgeTableClause optional
  • Loading branch information
Dtenwolde authored Feb 5, 2024
2 parents 15d57d2 + 77536d8 commit 9b64863
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions test/sql/create_pg/optional_edge_table_clause.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# name: test/sql/sqlpgq/snb.test
# group: [duckpgq]

require duckpgq

statement ok
import database 'duckdb-pgq/data/SNB0.003';

statement ok
-CREATE PROPERTY GRAPH snb
VERTEX TABLES (Message, person);

statement ok
-FROM GRAPH_TABLE (snb
MATCH (m:Message)
COLUMNS (*)
) tmp

statement error
-FROM GRAPH_TABLE (snb
MATCH (p:Person)-[k:Knows]->(p2:Person)
COLUMNS (*)
) tmp

0 comments on commit 9b64863

Please sign in to comment.