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

Function test_iterator

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

Source from the content-addressed store, hash-verified

206
207 #[test]
208 fn test_iterator() {
209 // put in c = a and
210 let mut set = JoinKeySet::new();
211 // put in c = a , b = c, and a = c and expect to get only the first 2
212 set.insert(&col("c"), &col("a"));
213 set.insert(&col("b"), &col("c"));
214 set.insert(&col("a"), &col("c"));
215 assert_contents(&set, vec![(&col("c"), &col("a")), (&col("b"), &col("c"))]);
216 }
217
218 #[test]
219 fn test_insert_intersection() {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
assert_contentsFunction · 0.85
colFunction · 0.50
insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…