()
| 1622 | |
| 1623 | #[tokio::test] |
| 1624 | async 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] |
| 1645 | async fn registry() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…