MCPcopy Create free account
hub / github.com/apache/datafusion / csv_explain_verbose

Function csv_explain_verbose

datafusion/core/tests/sql/explain_analyze.rs:498–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

496
497#[tokio::test]
498async 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]
519async fn csv_explain_inlist_verbose() {

Callers

nothing calls this directly

Calls 6

newFunction · 0.85
executeFunction · 0.70
mapMethod · 0.45
into_iterMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…