| 430 | } |
| 431 | |
| 432 | std::unique_ptr<planner::LogicalPlan> TestRunner::getLogicalPlan(const std::string& query, |
| 433 | Connection& conn) { |
| 434 | const auto preparedStatement = conn.prepare(query); |
| 435 | DASSERT(preparedStatement->isSuccess()); |
| 436 | auto cachedStatement = |
| 437 | conn.getClientContext()->getCachedPreparedStatementManager().getCachedStatement( |
| 438 | preparedStatement->getName()); |
| 439 | return std::move(cachedStatement->logicalPlan); |
| 440 | } |
| 441 | |
| 442 | } // namespace testing |
| 443 | } // namespace lbug |
nothing calls this directly
no test coverage detected