Skip to content

Commit

Permalink
move test, remove pritn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Mar 22, 2024
1 parent 47da5ae commit 532804f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
1 change: 0 additions & 1 deletion duckpgq/src/duckpgq/functions/tablefunctions/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,6 @@ PGQMatchFunction::MatchBindReplace(ClientContext &context,
subquery->node = std::move(select_node);

auto result = make_uniq<SubqueryRef>(std::move(subquery), ref->alias);
result->Print();
return std::move(result);
}
} // namespace duckdb
33 changes: 17 additions & 16 deletions test/sql/pattern-matching/undirected_edges.test
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ Daniel Peter
Daniel David
Daniel Peter

# Daniel has 3 outgoing edges and 2 incoming edges, so there should be 5 tuples
query II
-SELECT person, friend
FROM GRAPH_TABLE (pg
MATCH
(a:Student)-[k:know]-(b:Student)
WHERE a.name = 'Daniel'
COLUMNS (a.name as person, b.name as friend)
)
ORDER BY person, friend;
----
Daniel David
Daniel Gabor
Daniel Peter
Daniel Peter
Daniel Tavneet

# Daniel has 3 outgoing edges and 2 incoming edges, so there should be 5 tuples
query III
-FROM GRAPH_TABLE (pg
Expand All @@ -47,19 +64,3 @@ Daniel Peter 12
Daniel Peter 13
Daniel Tavneet 10

# Daniel has 3 outgoing edges and 2 incoming edges, so there should be 5 tuples
query II
-SELECT person, friend, date
FROM GRAPH_TABLE (pg
MATCH
(a:Student)-[k:know]-(b:Student)
WHERE a.name = 'Daniel'
COLUMNS (a.name as person, b.name as friend, k.createDate as date)
)
ORDER BY person, friend;
----
Daniel David
Daniel Gabor
Daniel Peter
Daniel Peter
Daniel Tavneet

0 comments on commit 532804f

Please sign in to comment.