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

Function intersect_distinct

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

Source from the content-addressed store, hash-verified

1732
1733#[tokio::test]
1734async fn intersect_distinct() -> Result<()> {
1735 let df = test_table().await?.select_columns(&["c1", "c3"])?;
1736 let d2 = df.clone();
1737 let plan = df.intersect_distinct(d2)?;
1738 let result = plan.logical_plan().clone();
1739 let expected = create_plan(
1740 "SELECT c1, c3 FROM aggregate_test_100
1741 INTERSECT DISTINCT SELECT c1, c3 FROM aggregate_test_100",
1742 )
1743 .await?;
1744 assert_same_plan(&result, &expected);
1745 Ok(())
1746}
1747
1748#[tokio::test]
1749async fn register_table() -> Result<()> {

Callers

nothing calls this directly

Calls 7

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