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

Function test_insert_all_owned

datafusion/optimizer/src/join_key_set.rs:274–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273 #[test]
274 fn test_insert_all_owned() {
275 let mut set = JoinKeySet::new();
276
277 // insert (a=b), (b=c), (b=a)
278 set.insert_all_owned(vec![
279 (col("a"), col("b")),
280 (col("b"), col("c")),
281 (col("b"), col("a")),
282 ]);
283 assert_eq!(set.len(), 2);
284 assert!(set.contains(&col("a"), &col("b")));
285 assert!(set.contains(&col("b"), &col("c")));
286 assert!(set.contains(&col("b"), &col("a")));
287
288 // should not contain (a=c)
289 assert!(!set.contains(&col("a"), &col("c")));
290 }
291}

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
insert_all_ownedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…