()
| 496 | |
| 497 | #[tokio::test] |
| 498 | async fn csv_explain_verbose() { |
| 499 | let ctx = SessionContext::new(); |
| 500 | register_aggregate_csv_by_sql(&ctx).await; |
| 501 | let sql = "EXPLAIN VERBOSE SELECT c1 FROM aggregate_test_100 where c2 > 10"; |
| 502 | let actual = execute(&ctx, sql).await; |
| 503 | |
| 504 | // flatten to a single string |
| 505 | let actual = actual.into_iter().map(|r| r.join("\t")).collect::<String>(); |
| 506 | |
| 507 | // Don't actually test the contents of the debugging output (as |
| 508 | // that may change and keeping this test updated will be a |
| 509 | // pain). Instead just check for a few key pieces. |
| 510 | assert_contains!(&actual, "logical_plan"); |
| 511 | assert_contains!(&actual, "physical_plan"); |
| 512 | assert_contains!(&actual, "aggregate_test_100.c2 > Int64(10)"); |
| 513 | |
| 514 | // ensure the "same text as above" optimization is working |
| 515 | assert_contains!(actual, "SAME TEXT AS ABOVE"); |
| 516 | } |
| 517 | |
| 518 | #[tokio::test] |
| 519 | async fn csv_explain_inlist_verbose() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…