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

Function test_aggregate_ext_distinct

datafusion/core/tests/expr_api/mod.rs:244–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242
243#[tokio::test]
244async fn test_aggregate_ext_distinct() {
245 let agg = sum_udaf()
246 .call(vec![lit(5)])
247 // distinct sum should be 5, not 15
248 .distinct()
249 .build()
250 .unwrap()
251 .alias("distinct");
252
253 evaluate_agg_test(
254 agg,
255 vec![
256 "+----------+",
257 "| distinct |",
258 "+----------+",
259 "| 5 |",
260 "+----------+",
261 ],
262 )
263 .await;
264}
265
266#[tokio::test]
267async fn test_aggregate_ext_null_treatment() {

Callers

nothing calls this directly

Calls 5

evaluate_agg_testFunction · 0.85
aliasMethod · 0.45
buildMethod · 0.45
distinctMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…