From 532804f32d35aabbd28f8031298c08867f453d99 Mon Sep 17 00:00:00 2001 From: dtenwolde Date: Fri, 22 Mar 2024 10:15:21 +0100 Subject: [PATCH] move test, remove pritn --- .../functions/tablefunctions/match.cpp | 1 - .../pattern-matching/undirected_edges.test | 33 ++++++++++--------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/duckpgq/src/duckpgq/functions/tablefunctions/match.cpp b/duckpgq/src/duckpgq/functions/tablefunctions/match.cpp index 46175fb1..ea6ff117 100644 --- a/duckpgq/src/duckpgq/functions/tablefunctions/match.cpp +++ b/duckpgq/src/duckpgq/functions/tablefunctions/match.cpp @@ -1074,7 +1074,6 @@ PGQMatchFunction::MatchBindReplace(ClientContext &context, subquery->node = std::move(select_node); auto result = make_uniq(std::move(subquery), ref->alias); - result->Print(); return std::move(result); } } // namespace duckdb diff --git a/test/sql/pattern-matching/undirected_edges.test b/test/sql/pattern-matching/undirected_edges.test index 5a95777b..e96ecbb0 100644 --- a/test/sql/pattern-matching/undirected_edges.test +++ b/test/sql/pattern-matching/undirected_edges.test @@ -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 @@ -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 \ No newline at end of file