diff --git a/duckpgq/src/duckpgq_extension.cpp b/duckpgq/src/duckpgq_extension.cpp index cd5b3dfb..9d419012 100644 --- a/duckpgq/src/duckpgq_extension.cpp +++ b/duckpgq/src/duckpgq_extension.cpp @@ -146,8 +146,8 @@ ParserExtensionPlanResult duckpgq_handle_statement(SQLStatement *statement, Duck } if (statement->type == StatementType::EXPLAIN_STATEMENT) { auto &explain_statement = statement->Cast(); - auto select_statement = dynamic_cast(explain_statement.stmt.get()); - duckpgq_handle_statement(select_statement, duckpgq_state); + // auto select_statement = dynamic_cast(explain_statement.stmt.get()); + duckpgq_handle_statement(explain_statement.stmt.get(), duckpgq_state); } if (statement->type == StatementType::COPY_STATEMENT) { auto ©_statement = statement->Cast(); diff --git a/test/sql/snb/snb.test b/test/sql/snb/snb.test index b4ef7a35..824e6224 100644 --- a/test/sql/snb/snb.test +++ b/test/sql/snb/snb.test @@ -178,3 +178,9 @@ query IIIII ---- 962072674306 thanks 2012-07-08 20:32:03.239+00 1 AlimGuliyev 962072674305 yes 2012-07-08 23:48:41.63+00 1 AlimGuliyev + +statement ok +-EXPLAIN ANALYZE COPY (FROM GRAPH_TABLE (snb +MATCH p = ANY SHORTEST (a:Person WHERE a.id = 19791209309999)-[k:knows]-> *(b:Person where b.id = 30786325579519) +COLUMNS (path_length(p), a.id as a_id, b.id as b_id) +) tmp LIMIT 20) TO '__TEST_DIR__/ic13-ea.txt';