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

Function intersect

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

Source from the content-addressed store, hash-verified

1687
1688#[tokio::test]
1689async fn intersect() -> Result<()> {
1690 let df = test_table().await?.select_columns(&["c1", "c3"])?;
1691 let d2 = df.clone();
1692 let plan = df.intersect(d2)?;
1693 let result = plan.logical_plan().clone();
1694 let expected = create_plan(
1695 "SELECT c1, c3 FROM aggregate_test_100
1696 INTERSECT ALL SELECT c1, c3 FROM aggregate_test_100",
1697 )
1698 .await?;
1699 assert_same_plan(&result, &expected);
1700 Ok(())
1701}
1702
1703#[tokio::test]
1704async fn except() -> Result<()> {

Callers 6

set_operation_to_planMethod · 0.50
intersectMethod · 0.50
intersect_distinctMethod · 0.50
from_set_relFunction · 0.50
intersect_relsFunction · 0.50

Calls 7

test_tableFunction · 0.85
assert_same_planFunction · 0.85
select_columnsMethod · 0.80
create_planFunction · 0.70
cloneMethod · 0.45
intersectMethod · 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…