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

Method insert

datafusion/optimizer/src/join_key_set.rs:60–67  ·  view source on GitHub ↗

Insert the join key `(left = right)` into the set if join pair `(right = left)` is not already in the set returns true if the pair was inserted

(&mut self, left: &Expr, right: &Expr)

Source from the content-addressed store, hash-verified

58 ///
59 /// returns true if the pair was inserted
60 pub fn insert(&mut self, left: &Expr, right: &Expr) -> bool {
61 if self.contains(left, right) {
62 false
63 } else {
64 self.inner.insert((left.clone(), right.clone()));
65 true
66 }
67 }
68
69 /// Same as [`Self::insert`] but avoids cloning expression if they
70 /// are owned

Callers 15

insert_ownedMethod · 0.45
insert_allMethod · 0.45
insert_intersectionMethod · 0.45
test_iteratorFunction · 0.45
test_insert_intersectionFunction · 0.45
routing_extractFunction · 0.45
remap_pairs_and_columnsFunction · 0.45
add_extractedMethod · 0.45
route_to_inputsFunction · 0.45
is_single_distinct_aggFunction · 0.45
rewriteMethod · 0.45

Calls 2

containsMethod · 0.45
cloneMethod · 0.45

Tested by 4

test_iteratorFunction · 0.36
test_insert_intersectionFunction · 0.36
with_udafMethod · 0.36
with_schemaMethod · 0.36