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

Function except_distinct

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

Source from the content-addressed store, hash-verified

1717
1718#[tokio::test]
1719async fn except_distinct() -> Result<()> {
1720 let df = test_table().await?.select_columns(&["c1", "c3"])?;
1721 let d2 = df.clone();
1722 let plan = df.except_distinct(d2)?;
1723 let result = plan.logical_plan().clone();
1724 let expected = create_plan(
1725 "SELECT c1, c3 FROM aggregate_test_100
1726 EXCEPT DISTINCT SELECT c1, c3 FROM aggregate_test_100",
1727 )
1728 .await?;
1729 assert_same_plan(&result, &expected);
1730 Ok(())
1731}
1732
1733#[tokio::test]
1734async fn intersect_distinct() -> Result<()> {

Callers

nothing calls this directly

Calls 7

test_tableFunction · 0.85
assert_same_planFunction · 0.85
select_columnsMethod · 0.80
except_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…