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

Function duplicates_no_distinct

datafusion/functions-aggregate/src/array_agg.rs:1241–1253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1239
1240 #[test]
1241 fn duplicates_no_distinct() -> Result<()> {
1242 let (mut acc1, mut acc2) = ArrayAggAccumulatorBuilder::string().build_two()?;
1243
1244 acc1.update_batch(&[data(["a", "b", "c"])])?;
1245 acc2.update_batch(&[data(["a", "b", "c"])])?;
1246 acc1 = merge(acc1, acc2)?;
1247
1248 let result = print_nulls(str_arr(acc1.evaluate()?)?);
1249
1250 assert_eq!(result, vec!["a", "b", "c", "a", "b", "c"]);
1251
1252 Ok(())
1253 }
1254
1255 #[test]
1256 fn duplicates_distinct() -> Result<()> {

Callers

nothing calls this directly

Calls 7

print_nullsFunction · 0.85
str_arrFunction · 0.85
dataFunction · 0.70
mergeFunction · 0.70
build_twoMethod · 0.45
update_batchMethod · 0.45
evaluateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…