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

Method insert

datafusion/physical-expr/src/equivalence/properties/dependency.rs:100–106  ·  view source on GitHub ↗

Insert a new dependency, returns false if the dependency was already in the map returns true if the dependency was newly inserted

(
        &mut self,
        target: &'a PhysicalSortExpr,
        dep: &'a PhysicalSortExpr,
    )

Source from the content-addressed store, hash-verified

98 /// returns false if the dependency was already in the map
99 /// returns true if the dependency was newly inserted
100 fn insert(
101 &mut self,
102 target: &'a PhysicalSortExpr,
103 dep: &'a PhysicalSortExpr,
104 ) -> bool {
105 self.seen.entry(target).or_default().insert(dep)
106 }
107
108 /// This function recursively analyzes the dependencies of the given sort
109 /// expression within the given dependency map to construct lexicographical

Callers 15

test_collect_columnsFunction · 0.45
projectMethod · 0.45
newMethod · 0.45
all_uniqueFunction · 0.45
maybe_newMethod · 0.45
connected_nodesMethod · 0.45
pushMethod · 0.45
add_constantMethod · 0.45
add_equal_conditionsMethod · 0.45

Calls 1

extendMethod · 0.45

Tested by 2

test_collect_columnsFunction · 0.36