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

Function explain

datafusion/core/tests/dataframe/mod.rs:1624–1642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1622
1623#[tokio::test]
1624async fn explain() -> Result<()> {
1625 // build query using Table API
1626 let df = test_table().await?;
1627 let df = df
1628 .select_columns(&["c1", "c2", "c11"])?
1629 .limit(0, Some(10))?
1630 .explain(false, false)?;
1631 let plan = df.logical_plan().clone();
1632
1633 // build query using SQL
1634 let sql_plan =
1635 create_plan("EXPLAIN SELECT c1, c2, c11 FROM aggregate_test_100 LIMIT 10")
1636 .await?;
1637
1638 // the two plans should be identical
1639 assert_same_plan(&plan, &sql_plan);
1640
1641 Ok(())
1642}
1643
1644#[tokio::test]
1645async fn registry() -> Result<()> {

Callers

nothing calls this directly

Calls 8

test_tableFunction · 0.85
assert_same_planFunction · 0.85
select_columnsMethod · 0.80
create_planFunction · 0.70
explainMethod · 0.45
limitMethod · 0.45
cloneMethod · 0.45
logical_planMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…