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

Function except

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

Source from the content-addressed store, hash-verified

1702
1703#[tokio::test]
1704async fn except() -> Result<()> {
1705 let df = test_table().await?.select_columns(&["c1", "c3"])?;
1706 let d2 = df.clone();
1707 let plan = df.except(d2)?;
1708 let result = plan.logical_plan().clone();
1709 let expected = create_plan(
1710 "SELECT c1, c3 FROM aggregate_test_100
1711 EXCEPT ALL SELECT c1, c3 FROM aggregate_test_100",
1712 )
1713 .await?;
1714 assert_same_plan(&result, &expected);
1715 Ok(())
1716}
1717
1718#[tokio::test]
1719async fn except_distinct() -> Result<()> {

Callers 4

set_operation_to_planMethod · 0.85
exceptMethod · 0.85
except_distinctMethod · 0.85
except_relsFunction · 0.85

Calls 7

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