diff --git a/tests/testthat/_snaps/explain.md b/tests/testthat/_snaps/explain.md deleted file mode 100644 index 021efa233..000000000 --- a/tests/testthat/_snaps/explain.md +++ /dev/null @@ -1,80 +0,0 @@ -# EXPLAIN gives reasonable output - - Code - DBI::dbGetQuery(con, "EXPLAIN SELECT 1;") - Output - physical_plan - ┌───────────────────────────┐ - │ PROJECTION │ - │ ──────────────────── │ - │ 1 │ - │ │ - │ ~1 row │ - └─────────────┬─────────────┘ - ┌─────────────┴─────────────┐ - │ DUMMY_SCAN │ - └───────────────────────────┘ - -# EXPLAIN shows logical, optimized and physical plan - - Code - DBI::dbExecute(con, "PRAGMA explain_output='all';") - Output - [1] 0 - Code - DBI::dbGetQuery(con, "EXPLAIN SELECT 1;") - Output - logical_plan - ┌───────────────────────────┐ - │ PROJECTION │ - │ ──────────────────── │ - │ Expressions: 1 │ - └─────────────┬─────────────┘ - ┌─────────────┴─────────────┐ - │ DUMMY_SCAN │ - │ ──────────────────── │ - └───────────────────────────┘ - logical_opt - ┌───────────────────────────┐ - │ PROJECTION │ - │ ──────────────────── │ - │ Expressions: 1 │ - │ │ - │ ~1 row │ - └─────────────┬─────────────┘ - ┌─────────────┴─────────────┐ - │ DUMMY_SCAN │ - │ ──────────────────── │ - │ ~1 row │ - └───────────────────────────┘ - physical_plan - ┌───────────────────────────┐ - │ PROJECTION │ - │ ──────────────────── │ - │ 1 │ - │ │ - │ ~1 row │ - └─────────────┬─────────────┘ - ┌─────────────┴─────────────┐ - │ DUMMY_SCAN │ - └───────────────────────────┘ - -# zero length input is smoothly skipped - - Code - rs <- DBI::dbGetQuery(con, "SELECT 1;") - rs[FALSE, ] - Output - integer(0) - -# wrong type of input forwards handling to the next method - - Code - rs <- DBI::dbGetQuery(con, "SELECT 1;") - class(rs) <- c("duckdb_explain", class(rs)) - rs - Output - 1 - 1 1 - -